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.c | |
parent | 492c0ab72a050a19d09d0df16eb3b0d8da22be1a (diff) |
* 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.c')
-rw-r--r-- | gdb/testsuite/gdb.base/enumval.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/enumval.c b/gdb/testsuite/gdb.base/enumval.c index 13e081abce..44d4fd0644 100644 --- a/gdb/testsuite/gdb.base/enumval.c +++ b/gdb/testsuite/gdb.base/enumval.c @@ -17,6 +17,8 @@ enum e { I, J = 0xffffffffU, K = 0xf000000000000000ULL } e = J, f = K; +enum { ZERO }; + void dummy() { @@ -26,5 +28,5 @@ int main(void) { dummy(); - return 0; + return ZERO; /* This is here to ensure it survives into the debug info. */ } |