diff options
author | Tom Tromey <tromey@redhat.com> | 2012-06-15 16:19:02 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-06-15 16:19:02 +0000 |
commit | 663b969e6822015e34d1ab00084501a600341ab2 (patch) | |
tree | da6d43a21275a14d6ea0efc889f64bfa87da4896 | |
parent | d2667025dd30611514810c28bee9709e4623012a (diff) | |
download | gdb-663b969e6822015e34d1ab00084501a600341ab2.zip gdb-663b969e6822015e34d1ab00084501a600341ab2.tar.gz gdb-663b969e6822015e34d1ab00084501a600341ab2.tar.bz2 |
* dwarf2read.c (dw2_find_symbol_file): Unconditionally use
init_cutu_and_read_dies.
testsuite
* gdb.cp/namespace.exp: Add "show lang" test.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/dwarf2read.c | 8 | ||||
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.cp/namespace.exp | 1 |
4 files changed, 12 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 32620a2..a877d0b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2012-06-15 Tom Tromey <tromey@redhat.com> + + * dwarf2read.c (dw2_find_symbol_file): Unconditionally use + init_cutu_and_read_dies. + 2012-06-15 Iain Sandoe <iain@codesourcery.com> * MAINTAINERS (Write After Approval): Add myself to the list. diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 1fdd819..a8cd158 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -2906,12 +2906,8 @@ dw2_find_symbol_file (struct objfile *objfile, const char *name) if (per_cu->v.quick->symtab != NULL) return per_cu->v.quick->symtab->filename; - if (per_cu->is_debug_types) - init_cutu_and_read_dies (per_cu, 0, 0, dw2_get_primary_filename_reader, - &filename); - else - init_cutu_and_read_dies_simple (per_cu, dw2_get_primary_filename_reader, - &filename); + init_cutu_and_read_dies (per_cu, 0, 0, dw2_get_primary_filename_reader, + &filename); return filename; } diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 1e018e2..613dc65 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2012-06-15 Tom Tromey <tromey@redhat.com> + + * gdb.cp/namespace.exp: Add "show lang" test. + 2012-06-15 Iain Sandoe <iain@codesourcery.com> * gdb.base/list.exp (test_listsize): Remove $use_gdb_stub special diff --git a/gdb/testsuite/gdb.cp/namespace.exp b/gdb/testsuite/gdb.cp/namespace.exp index cf5a858..82018c6 100644 --- a/gdb/testsuite/gdb.cp/namespace.exp +++ b/gdb/testsuite/gdb.cp/namespace.exp @@ -66,6 +66,7 @@ gdb_start gdb_reinitialize_dir $srcdir/$subdir gdb_load ${binfile} +gdb_test "show lang" "auto; currently c\\+\\+.*" # # set it up at a breakpoint so we can play with the variable values |