This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
FYI: set dwz_file in dwarf2read.c
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Tue, 11 Dec 2012 12:48:17 -0700
- Subject: FYI: set dwz_file in dwarf2read.c
I'm checking this in.
Doug pointed out that nothing set the dwz_file member of
dwarf2_per_objfile. Oops.
This patch fixes the problem in the intended way.
Built and regtested (with and without 'dwz -m') on x86-64 Fedora 16.
Tom
2012-12-11 Tom Tromey <tromey@redhat.com>
* dwarf2read.c (dwarf2_get_dwz_file): Set 'dwz_file'.
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index b0f90ff..e469959 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -2112,6 +2112,7 @@ dwarf2_get_dwz_file (void)
do_cleanups (cleanup);
+ dwarf2_per_objfile->dwz_file = result;
return result;
}