aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2022-09-21 14:45:06 +0930
committerAlan Modra <amodra@gmail.com>2022-09-21 15:55:10 +0930
commit6c0cf2ca0db6748edec00a2293541f95464268a0 (patch)
tree5be9cba686720655de421698aaf66f1ad9a325d1 /gdb/python
parente472ec9fad6d7b0da914da606430e249d1bd99e4 (diff)
downloadgdb-6c0cf2ca0db6748edec00a2293541f95464268a0.zip
gdb-6c0cf2ca0db6748edec00a2293541f95464268a0.tar.gz
gdb-6c0cf2ca0db6748edec00a2293541f95464268a0.tar.bz2
dwarf2.c remove varinfo and funcinfo sec field
The "sec" field in these structures is only set and used in lookup functions. It always starts off as NULL. So the only possible effect of the field is to modify the return of the lookup, which was its purpose back in 2005 when HJ fixed PR990. Since then we solved the problem of relocatable object files with the fix for PR2338, so this field is now redundant. * dwarf.c (struct funcinfo, struct varinfo): Remove "sec" field. (lookup_symbol_in_function_table): Don't set or test "sec". (lookup_symbol_in_variable_table): Likewise. (info_hash_lookup_funcinfo, info_hash_lookup_varinfo): Likewise.
Diffstat (limited to 'gdb/python')
0 files changed, 0 insertions, 0 deletions