From: wolf Date: Sat, 21 Apr 2007 12:40:36 +0000 (+0000) Subject: - fix accessing debuginfo data X-Git-Tag: auto/th/valgrind-3_2_3-2~1 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fvalgrind.git;a=commitdiff_plain;h=e7aafe5a43b6ea17f952fad590ee9f7b9a4f8acd - fix accessing debuginfo data Changed files: valgrind-debuginfo.patch -> 1.1 --- 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); ++ } + } + } +