]> git.pld-linux.org Git - packages/valgrind.git/blob - valgrind-debuginfo.patch
- fix accessing debuginfo data
[packages/valgrind.git] / valgrind-debuginfo.patch
1 diff -ruN valgrind-3.2.3./coregrind/m_debuginfo/readelf.c valgrind-3.2.3/coregrind/m_debuginfo/readelf.c
2 --- valgrind-3.2.3./coregrind/m_debuginfo/readelf.c     2007-01-13 00:19:50.000000000 +0100
3 +++ valgrind-3.2.3/coregrind/m_debuginfo/readelf.c      2007-04-21 14:34:39.564762671 +0200
4 @@ -790,7 +790,9 @@
5        VG_(sprintf)(debugpath, "%s/.debug/%s", objdir, debugname);
6        if ((addr = open_debug_file(debugpath, crc, size)) == 0) {
7           VG_(sprintf)(debugpath, "/usr/lib/debug%s/%s", objdir, debugname);
8 -         addr = open_debug_file(debugpath, crc, size);
9 +         if ((addr = open_debug_file(debugpath, crc, size)) == 0) {
10 +            addr = open_debug_file(debugname, crc, size);
11 +        }
12        }
13     }
14  
This page took 0.050969 seconds and 3 git commands to generate.