FYI: set dwz_file in dwarf2read.c

Tom Tromey tromey@redhat.com
Tue Dec 11 19:48:00 GMT 2012


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;
 }
 



More information about the Gdb-patches mailing list