diff options
author | Doug Evans <dje@google.com> | 2013-09-04 23:05:32 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2013-09-04 23:05:32 +0000 |
commit | 89e63ee47a55271506d68f24b25a4a2094ab346f (patch) | |
tree | 789f9e3cf3fab8f723af987820f6cc934a0b28a5 /gdb/testsuite/gdb.base/enumval.exp | |
parent | 492c0ab72a050a19d09d0df16eb3b0d8da22be1a (diff) | |
download | fsf-binutils-gdb-89e63ee47a55271506d68f24b25a4a2094ab346f.zip fsf-binutils-gdb-89e63ee47a55271506d68f24b25a4a2094ab346f.tar.gz fsf-binutils-gdb-89e63ee47a55271506d68f24b25a4a2094ab346f.tar.bz2 |
* dwarf2read.c (queue_and_load_all_dwo_tus): New function.
(queue_and_load_dwo_tu): New function.
(lookup_dwo_signatured_type): Set per_cu.tu_read.
(maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
Make dependent_cu optional.
(dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
and an older .gdb_index is in use, queue and load all its TUs too.
testsuite/
* gdb.base/enumval.c (ZERO): New enum value.
(main): Use it
* gdb.base/enumval.exp: Test ability to print ZERO.
Diffstat (limited to 'gdb/testsuite/gdb.base/enumval.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/enumval.exp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/enumval.exp b/gdb/testsuite/gdb.base/enumval.exp index e0964fc..93e6752 100644 --- a/gdb/testsuite/gdb.base/enumval.exp +++ b/gdb/testsuite/gdb.base/enumval.exp @@ -70,3 +70,9 @@ gdb_test_multiple $test $test { } } } + +# gold/15021 +# With -fdebug-types-section, Gold's .gdb_index entry for ZERO refers to the +# CU, but the CU doesn't use the TU (type unit) that defines ZERO. +# Thus gdb has to read in every TU for the CU. +gdb_test "p ZERO" "ZERO" |