From e7aafe5a43b6ea17f952fad590ee9f7b9a4f8acd Mon Sep 17 00:00:00 2001 From: wolf Date: Sat, 21 Apr 2007 12:40:36 +0000 Subject: [PATCH] - fix accessing debuginfo data Changed files: valgrind-debuginfo.patch -> 1.1 --- valgrind-debuginfo.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 valgrind-debuginfo.patch diff --git a/valgrind-debuginfo.patch b/valgrind-debuginfo.patch new file mode 100644 index 0000000..64bf4db --- /dev/null +++ b/valgrind-debuginfo.patch @@ -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); ++ } + } + } + -- 2.43.0