aboutsummaryrefslogtreecommitdiff
path: root/gdb/or1k-linux-tdep.c
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2019-07-31 13:05:37 -0600
committerTom Tromey <tromey@adacore.com>2019-10-02 09:53:17 -0600
commitd3d323915c034ed9f7465568e1876aa269ab1d0f (patch)
tree1bf6138447b040297b3289490ca9025e19b64894 /gdb/or1k-linux-tdep.c
parent38583298e0ab81ab78689d89abcb5122e0251c74 (diff)
downloadgdb-d3d323915c034ed9f7465568e1876aa269ab1d0f.zip
gdb-d3d323915c034ed9f7465568e1876aa269ab1d0f.tar.gz
gdb-d3d323915c034ed9f7465568e1876aa269ab1d0f.tar.bz2
Search global block from basic_lookup_symbol_nonlocal
This changes lookup_global_symbol to look in the global block of the passed-in block. If no block was passed in, it reverts to the previous behavior. This change is needed to ensure that 'FILENAME'::NAME lookups work properly. As debugging Pedro's test case showed, this was not working properly in the case where multiple identical names could be found (the one situation where this feature is truly needed :-). This also removes some old comments from basic_lookup_symbol_nonlocal that no longer apply. Note that the new test cases for this change will appear in a later patch. They are in gdb.base/print-file-var.exp. gdb/ChangeLog 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com> * symtab.c (lookup_global_symbol): Search global block.
Diffstat (limited to 'gdb/or1k-linux-tdep.c')
0 files changed, 0 insertions, 0 deletions