]> git.pld-linux.org Git - packages/valgrind.git/commitdiff
- fix accessing debuginfo data
authorwolf <wolf@pld-linux.org>
Sat, 21 Apr 2007 12:40:36 +0000 (12:40 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    valgrind-debuginfo.patch -> 1.1

valgrind-debuginfo.patch [new file with mode: 0644]

diff --git a/valgrind-debuginfo.patch b/valgrind-debuginfo.patch
new file mode 100644 (file)
index 0000000..64bf4db
--- /dev/null
@@ -0,0 +1,14 @@
+diff -ruN valgrind-3.2.3./coregrind/m_debuginfo/readelf.c valgrind-3.2.3/coregrind/m_debuginfo/readelf.c
+--- valgrind-3.2.3./coregrind/m_debuginfo/readelf.c    2007-01-13 00:19:50.000000000 +0100
++++ valgrind-3.2.3/coregrind/m_debuginfo/readelf.c     2007-04-21 14:34:39.564762671 +0200
+@@ -790,7 +790,9 @@
+       VG_(sprintf)(debugpath, "%s/.debug/%s", objdir, debugname);
+       if ((addr = open_debug_file(debugpath, crc, size)) == 0) {
+          VG_(sprintf)(debugpath, "/usr/lib/debug%s/%s", objdir, debugname);
+-         addr = open_debug_file(debugpath, crc, size);
++         if ((addr = open_debug_file(debugpath, crc, size)) == 0) {
++            addr = open_debug_file(debugname, crc, size);
++       }
+       }
+    }
This page took 0.058386 seconds and 4 git commands to generate.