From 8d10c5788fedfb40b144ee7e96ab8aa8b3a959dd Mon Sep 17 00:00:00 2001 From: seyko Date: Tue, 3 Mar 2015 14:46:44 +0300 Subject: [PATCH] Add a debug info when a #line directive is handled. The problem was: a debug info for the file which contain a #line directive (for example a preprocessed one) was wrong. --- tccpp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tccpp.c b/tccpp.c index 4ecc664..82168f7 100644 --- a/tccpp.c +++ b/tccpp.c @@ -1687,6 +1687,8 @@ include_done: pstrcpy(file->filename, sizeof(file->filename), (char *)tokc.cstr->data); } + if (s1->do_debug) + put_stabs(file->filename, N_BINCL, 0, 0, 0); break; case TOK_ERROR: case TOK_WARNING: