X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;ds=sidebyside;f=gdb-6.8-bz466901-backtrace-full-prelinked.patch;h=2211fa3d5f6d82b879201fe3da8d934120987312;hb=51a5ef0fcc85578604905ccfa8d198db5dd6d324;hp=f9ec3495f0cefe7ff3ca7ebde6b8e49551c25996;hpb=72a62b375a20aac1247137b9608c5ecbe7900ba2;p=packages%2Fgdb.git diff --git a/gdb-6.8-bz466901-backtrace-full-prelinked.patch b/gdb-6.8-bz466901-backtrace-full-prelinked.patch index f9ec349..2211fa3 100644 --- a/gdb-6.8-bz466901-backtrace-full-prelinked.patch +++ b/gdb-6.8-bz466901-backtrace-full-prelinked.patch @@ -1,20 +1,5 @@ Fix resolving of variables at locations lists in prelinked libs (BZ 466901). -Index: gdb-6.8.50.20090909/gdb/dwarf2loc.c -=================================================================== ---- gdb-6.8.50.20090909.orig/gdb/dwarf2loc.c 2009-09-09 20:08:03.000000000 +0200 -+++ gdb-6.8.50.20090909/gdb/dwarf2loc.c 2009-09-09 20:10:35.000000000 +0200 -@@ -56,7 +56,9 @@ find_location_expression (struct dwarf2_ - CORE_ADDR low, high; - gdb_byte *loc_ptr, *buf_end; - int length; -- struct objfile *objfile = dwarf2_per_cu_objfile (baton->per_cu); -+ struct objfile *objfile1 = dwarf2_per_cu_objfile (baton->per_cu); -+ struct objfile *objfile = objfile1->separate_debug_objfile -+ ? objfile1->separate_debug_objfile : objfile1; - struct gdbarch *gdbarch = get_objfile_arch (objfile); - enum bfd_endian byte_order = gdbarch_byte_order (gdbarch); - unsigned int addr_size = dwarf2_per_cu_addr_size (baton->per_cu); Index: gdb-6.8.50.20090909/gdb/testsuite/gdb.dwarf2/dw2-loclist-prelinked.exp =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000