aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.c
diff options
context:
space:
mode:
authorFelix Willgerodt <felix.willgerodt@intel.com>2021-06-23 15:56:24 +0200
committerFelix Willgerodt <felix.willgerodt@intel.com>2021-07-13 15:29:29 +0200
commit81e33ce2894678a60ed4d5e4471cd6eb968056c2 (patch)
tree4114dbe7fe5cdbd8475835806ea01aab7152752b /gdb/target.c
parent5c046e0e631dc98faec53d99c76f9d3ef44da75c (diff)
downloadgdb-81e33ce2894678a60ed4d5e4471cd6eb968056c2.zip
gdb-81e33ce2894678a60ed4d5e4471cd6eb968056c2.tar.gz
gdb-81e33ce2894678a60ed4d5e4471cd6eb968056c2.tar.bz2
gdb, dwarf: Don't follow the parent of a subprogram to get a prefix.
During prefix resolution, if the parent is a subprogram, there is no need to go to the parent of the subprogram. The DIE will be local. For a program like: ~~~ class F1 { public: int a; int vvv () { class F2 { int f; }; F2 abcd; return 1; } }; ~~~ The class F2 should not be seen as a member of F1. Before: ~~~ (gdb) ptype abcd type = class F1::F2 { private: int f; } ~~~ After: ~~~ (gdb) ptype abcd type = class F2 { private: int f; } ~~~ gdb/ChangeLog: 2021-06-23 Felix Willgerodt <felix.willgerodt@intel.com> * dwarf2/read.c (determine_prefix): Return an empty prefix if the parent is a subprogram. gdb/testsuite/ChangeLog: 2021-06-23 Felix Willgerodt <felix.willgerodt@intel.com> * gdb.cp/nested-class-func-class.cc: New file. * gdb.cp/nested-class-func-class.exp: New file.
Diffstat (limited to 'gdb/target.c')
0 files changed, 0 insertions, 0 deletions