This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]