Make symtab.c better styled.
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Thu, 10 Jan 2019 21:34:23 +0000 (22:34 +0100)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Tue, 12 Feb 2019 19:02:32 +0000 (20:02 +0100)
commit1ed9f74e85b7ace7debad5ade4775684a1fa99f9
tree2bfb77198769d27eb1b557f66199d7ca5f98d7b6
parent2636d81d80ad34653d05d0d94207d62720bfd6aa
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.
gdb/ChangeLog
gdb/symtab.c
gdb/symtab.h