diff options
author | Tom Tromey <tromey@adacore.com> | 2019-07-18 12:27:16 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2019-09-10 08:30:45 -0600 |
commit | aa3916548076c159ae00a922690694094a37fcd0 (patch) | |
tree | d673c16523aed92e60f33355c100ae7290c329d3 /gdb/ChangeLog | |
parent | b054970d54e141e5d2c824223772685742af2c2a (diff) | |
download | gdb-aa3916548076c159ae00a922690694094a37fcd0.zip gdb-aa3916548076c159ae00a922690694094a37fcd0.tar.gz gdb-aa3916548076c159ae00a922690694094a37fcd0.tar.bz2 |
Fix latent bug in .debug_names file-name handling
An internal Ada test case showed that the .debug_names code does not
compute the same list of file names as the partial symbol reader. In
particular, the partial symbol reader uses the DW_AT_name of the CU:
/* Allocate a new partial symbol table structure. */
filename = dwarf2_string_attr (comp_unit_die, DW_AT_name, cu);
if (filename == NULL)
filename = "";
pst = create_partial_symtab (per_cu, filename);
This patch changes the .debug_names reader to follow.
gdb/ChangeLog
2019-09-10 Tom Tromey <tromey@adacore.com>
* dwarf2read.c (dw2_get_file_names_reader): Add the
CU's file name to the results.
gdb/testsuite/ChangeLog
2019-09-10 Tom Tromey <tromey@adacore.com>
* gdb.ada/dgopt.exp: New file.
* gdb.ada/dgopt/x.adb: New file.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e54629c..4db1572 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2019-09-10 Tom Tromey <tromey@adacore.com> + * dwarf2read.c (dw2_get_file_names_reader): Add the + CU's file name to the results. + +2019-09-10 Tom Tromey <tromey@adacore.com> + * ada-lang.c (add_nonlocal_symbols): Combine calls to map_matching_symbols. Update. * dwarf2read.c (dw2_map_matching_symbols): Update. |