aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorseyko <seyko2@gmail.com>2015-03-03 14:46:44 +0300
committerseyko <seyko2@gmail.com>2015-03-03 14:46:44 +0300
commit8d10c5788fedfb40b144ee7e96ab8aa8b3a959dd (patch)
tree12326b7c43bc45dbb1f090347f2e8e1e0d2fe1a8
parent09d4e4f408387fa897a9c5d28ef4e50969574da6 (diff)
downloadtinycc-8d10c5788fedfb40b144ee7e96ab8aa8b3a959dd.tar.gz
tinycc-8d10c5788fedfb40b144ee7e96ab8aa8b3a959dd.tar.bz2
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.
-rw-r--r--tccpp.c2
1 files changed, 2 insertions, 0 deletions
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: