aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-lang.h
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2020-05-11 17:13:49 +0200
committerTom de Vries <tdevries@suse.de>2020-05-11 17:13:49 +0200
commit7666722fce2a26a32d9d931e9ce0fea8a7209185 (patch)
tree9ed39495cec5f5df982604d612e8e54cd6bece31 /gdb/ada-lang.h
parent3ee6bb113afd87a408dd8551768d801d04556ffd (diff)
downloadbinutils-7666722fce2a26a32d9d931e9ce0fea8a7209185.zip
binutils-7666722fce2a26a32d9d931e9ce0fea8a7209185.tar.gz
binutils-7666722fce2a26a32d9d931e9ce0fea8a7209185.tar.bz2
[gdb/symtab] Save modules in .debug_names
When running test-case gdb.fortran/info-modules.exp with target board debug-names, I run into: ... FAIL: gdb.fortran/info-modules.exp: info modules: check for entry \ 'info-types-2.f90', '18', 'mod2' ... In more detail, comparing the behaviour of the executable without and with .debug_names section, we have: ... -$ gdb -batch info-modules -ex "info modules" +$ gdb -batch info-modules.debugnames -ex "info modules" All defined modules: -File /data/gdb_versions/devel/src/gdb/testsuite/gdb.fortran/info-types-2.f90: -18: mod2 - File /data/gdb_versions/devel/src/gdb/testsuite/gdb.fortran/info-types.f90: 16: mod1 ... This is due to the fact that the .debug_names section does not contain DW_TAG_module entries. Fix this in debug_names::psymbol_tag. Build and tested on x86_64-linux with target board debug-names. gdb/ChangeLog: 2020-05-11 Tom de Vries <tdevries@suse.de> * dwarf2/index-write.c (debug_names::psymbol_tag): Handle MODULE_DOMAIN.
Diffstat (limited to 'gdb/ada-lang.h')
0 files changed, 0 insertions, 0 deletions