aboutsummaryrefslogtreecommitdiff
path: root/gdb/psympriv.h
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2012-07-10 20:17:30 +0000
committerDoug Evans <dje@google.com>2012-07-10 20:17:30 +0000
commitb4c41fc7e2e297121ad3c96ad9e2f8b8738be373 (patch)
treee5d5ff5b26a4b2978ef135d07e2cc2bcd743d1e5 /gdb/psympriv.h
parent0bfa869d53ae28e6707936910a55317dfe816e14 (diff)
downloadgdb-b4c41fc7e2e297121ad3c96ad9e2f8b8738be373.zip
gdb-b4c41fc7e2e297121ad3c96ad9e2f8b8738be373.tar.gz
gdb-b4c41fc7e2e297121ad3c96ad9e2f8b8738be373.tar.bz2
* psympriv.h (struct partial_symtab): New member "anonymous".
* psymtab.c (partial_map_symtabs_matching_filename): Ignore anonymous psymtabs. (read_psymtabs_with_filename): Ditto. (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto. (expand_symtabs_matching_via_partial): Ditto. (dump_psymtab): Update.
Diffstat (limited to 'gdb/psympriv.h')
-rw-r--r--gdb/psympriv.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/gdb/psympriv.h b/gdb/psympriv.h
index 370ce86..16b9b83 100644
--- a/gdb/psympriv.h
+++ b/gdb/psympriv.h
@@ -82,7 +82,9 @@ struct partial_symtab
struct partial_symtab *next;
- /* Name of the source file which this partial_symtab defines. */
+ /* Name of the source file which this partial_symtab defines,
+ or if the psymtab is anonymous then a descriptive name for
+ debugging purposes, or "". It must not be NULL. */
const char *filename;
@@ -182,6 +184,10 @@ struct partial_symtab
unsigned char psymtabs_addrmap_supported;
+ /* True if the name of this partial symtab is not a source file name. */
+
+ unsigned char anonymous;
+
/* A flag that is temporarily used when searching psymtabs. */
ENUM_BITFIELD (psymtab_search_status) searched_flag : 2;