summaryrefslogtreecommitdiff
path: root/gdb/macrotab.h
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2002-11-06 20:57:41 +0000
committerJim Blandy <jimb@codesourcery.com>2002-11-06 20:57:41 +0000
commitad23afcb2b8465db98ae495763421ec136b34605 (patch)
tree666f008f9f7de42bc733fd2cb32742eaae1f435d /gdb/macrotab.h
parent112dd94e02e34d5e6ff53d5a43b98332ae245d20 (diff)
downloadgdb-ad23afcb2b8465db98ae495763421ec136b34605.tar.gz
* macrotab.h (struct macro_source_file): Doc fix.
Diffstat (limited to 'gdb/macrotab.h')
-rw-r--r--gdb/macrotab.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/macrotab.h b/gdb/macrotab.h
index df32977967e..bd44e2c3ed3 100644
--- a/gdb/macrotab.h
+++ b/gdb/macrotab.h
@@ -83,6 +83,15 @@ struct macro_table;
tree mapping the #inclusions that contributed to the compilation
unit, with the main source file as its root.
+ Beware --- not every source file mentioned in a compilation unit's
+ symtab structures will appear in the #inclusion tree! As of Oct
+ 2002, GCC does record the effect of #line directives in the source
+ line info, but not in macro info. This means that GDB's symtabs
+ (built from the former, among other things) may mention filenames
+ that the #inclusion tree (built from the latter) doesn't have any
+ record of. See macroscope.c:sal_macro_scope for how to accomodate
+ this.
+
It's worth noting that libcpp has a simpler way of representing all
this, which we should consider switching to. It might even be
suitable for ordinary non-macro line number info.