Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 209182 Details for
Bug 274771
dev-util/valgrind: huge amount of errors with >=glibc-2.10
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Allows valgrind to search debuginfo files into /usr/lib/debug/libXX
valgrind_fix_debuginfo_path_on_gentoo.patch (text/plain), 1.69 KB, created by
Vincenzo Di Massa
on 2009-11-04 01:06:20 UTC
(
hide
)
Description:
Allows valgrind to search debuginfo files into /usr/lib/debug/libXX
Filename:
MIME Type:
Creator:
Vincenzo Di Massa
Created:
2009-11-04 01:06:20 UTC
Size:
1.69 KB
patch
obsolete
>Index: coregrind/m_debuginfo/readelf.c >=================================================================== >--- coregrind/m_debuginfo/readelf.c (revision 10923) >+++ coregrind/m_debuginfo/readelf.c (working copy) >@@ -979,21 +979,29 @@ > Char *objdirptr; > Char *debugpath; > Addr addr = 0; >+ UInt si; > > if ((objdirptr = VG_(strrchr)(objdir, '/')) != NULL) > *objdirptr = '\0'; >- > debugpath = ML_(dinfo_zalloc)( > "di.fdf.2", > VG_(strlen)(objdir) + VG_(strlen)(debugname) + 32); > > VG_(sprintf)(debugpath, "%s/%s", objdir, debugname); >+ TRACE_SYMTAB(" trying debugpath %s\n", debugpath); > > if ((addr = open_debug_file(debugpath, crc, size)) == 0) { > VG_(sprintf)(debugpath, "%s/.debug/%s", objdir, debugname); >+ TRACE_SYMTAB(" trying debugpath %s\n", debugpath); > 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); >+ TRACE_SYMTAB(" trying debugpath %s\n", debugpath); >+ if ((addr = open_debug_file(debugpath, crc, size)) == 0) { >+ si = sizeof(void*)*8; >+ VG_(sprintf)(debugpath, "/usr/lib/debug%s%u/%s", objdir, si, debugname); >+ TRACE_SYMTAB(" trying debugpath %s\n", debugpath); >+ addr = open_debug_file(debugpath, crc, size); >+ } > } > } > >@@ -1001,6 +1009,10 @@ > TRACE_SYMTAB("\n"); > TRACE_SYMTAB("------ Found a debuginfo file: %s\n", debugpath); > } >+ else >+ { >+ TRACE_SYMTAB("------ No debuginfo file found\n"); >+ } > > ML_(dinfo_free)(debugpath); > ML_(dinfo_free)(objdir);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 274771
:
195254
|
195256
|
200938
| 209182 |
254083
|
254133
|
258334
|
311403