summaryrefslogtreecommitdiff
path: root/gdb/psympriv.h
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2012-07-10 20:17:29 +0000
committerDoug Evans <dje@google.com>2012-07-10 20:17:29 +0000
commite79fe37c513da4eb9612bf6eadc61539782df1fd (patch)
treefc18d2c54045cc36693f4bf4ec3bd1134efe0b41 /gdb/psympriv.h
parente1dd9547b6e990d6c3a35106b5a21dc3649b1be2 (diff)
downloadgdb-e79fe37c513da4eb9612bf6eadc61539782df1fd.tar.gz
* 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 370ce86b315..16b9b83f902 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;