diff options
author | Philippe Waroquiers <philippe.waroquiers@skynet.be> | 2019-01-10 22:34:23 +0100 |
---|---|---|
committer | Philippe Waroquiers <philippe.waroquiers@skynet.be> | 2019-02-12 20:02:32 +0100 |
commit | 1ed9f74e85b7ace7debad5ade4775684a1fa99f9 (patch) | |
tree | 2bfb77198769d27eb1b557f66199d7ca5f98d7b6 /gdb/symtab.h | |
parent | 2636d81d80ad34653d05d0d94207d62720bfd6aa (diff) | |
download | gdb-1ed9f74e85b7ace7debad5ade4775684a1fa99f9.zip gdb-1ed9f74e85b7ace7debad5ade4775684a1fa99f9.tar.gz gdb-1ed9f74e85b7ace7debad5ade4775684a1fa99f9.tar.bz2 |
Make symtab.c better styled.
Note that print_msymbol_info does not (yet?) print data msymbol
using variable_name_style, as otherwise 'info variables'
would show the non debugging symbols in variable name style,
but 'real' variables would be not styled.
2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
* symtab.h (struct minimal_symbol data_p): New const method.
(struct minimal_symbol text_p): Likewise.
* symtab.c (output_source_filename): Use file name style
to print file name.
(print_symbol_info): Likewise.
(print_msymbol_info): Use address style to print addresses.
Use function name style to print executable text symbols.
(expand_symtab_containing_pc): Use data_p.
(find_pc_sect_compunit_symtab): Likewise.
Diffstat (limited to 'gdb/symtab.h')
-rw-r--r-- | gdb/symtab.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h index 72c9164..d354c95 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -686,6 +686,14 @@ struct minimal_symbol the `next' pointer for the demangled hash table. */ struct minimal_symbol *demangled_hash_next; + +/* True if this symbol is of some data type. */ + + bool data_p () const; + + /* True if MSYMBOL is of some text type. */ + + bool text_p () const; }; #define MSYMBOL_TARGET_FLAG_1(msymbol) (msymbol)->target_flag_1 |