aboutsummaryrefslogtreecommitdiff
path: root/gdb/rust-parse.c
diff options
context:
space:
mode:
authorHannes Domani <ssbssa@yahoo.de>2024-06-24 18:45:37 +0200
committerHannes Domani <ssbssa@yahoo.de>2024-06-24 19:41:17 +0200
commit390359aea1d911f3ad4577c4257a219e1557b48f (patch)
tree613edad74d3053144fed4f96337c46b98c5231f7 /gdb/rust-parse.c
parent72429c2a17a7c2f27006d5bee8404e8d73923878 (diff)
downloadgdb-390359aea1d911f3ad4577c4257a219e1557b48f.zip
gdb-390359aea1d911f3ad4577c4257a219e1557b48f.tar.gz
gdb-390359aea1d911f3ad4577c4257a219e1557b48f.tar.bz2
Fix gdb.lookup_type for function-local types
Looking for a type defined locally in a function doesn't work any more since the introduction of TYPE_DOMAIN: ``` (gdb) python print (gdb.lookup_type ('main()::Local')) Python Exception <class 'gdb.error'>: No type named main()::Local. Error occurred in Python: No type named main()::Local. ``` cp_search_static_and_baseclasses was simply missing a check for SEARCH_TYPE_DOMAIN, now it works again: ``` (gdb) python print (gdb.lookup_type ('main()::Local')) Local ``` Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31922 Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/rust-parse.c')
0 files changed, 0 insertions, 0 deletions