|
From: Per v. Z.
|
Hi. Trying to get valgrind to attach to GDB at run-time -- which fails. I'm=20 suspecting i need to specify the string "gdb" somewhere for it to find=20 gdb -- since runnin 'gdb -nw /proc/13594/exe 13594' does what I want it t= o. Log follows: pvz@tanya:~/src/tvtime-0.9.11/src$ valgrind --skin=3Dmemcheck=20 --gdb-attach=3Dyes ./tvtime =3D=3D13594=3D=3D Memcheck, a.k.a. Valgrind, a memory error detector for = x86-linux. =3D=3D13594=3D=3D Copyright (C) 2002-2003, and GNU GPL'd, by Julian Sewar= d. =3D=3D13594=3D=3D Using valgrind-20031012, a program supervision framewor= k for=20 x86-linux. =3D=3D13594=3D=3D Copyright (C) 2000-2003, and GNU GPL'd, by Julian Sewar= d. =3D=3D13594=3D=3D Estimated CPU clock rate is 1207 MHz =3D=3D13594=3D=3D For more details, rerun with: -v =3D=3D13594=3D=3D K=F6r tvtime 0.9.11. =3D=3D13594=3D=3D Conditional jump or move depends on uninitialised value= (s) =3D=3D13594=3D=3D at 0x40008ABA: _dl_relocate_object_internal (in=20 /lib/ld-2.3.2.so) =3D=3D13594=3D=3D by 0x406B1CF0: (within /lib/libc-2.3.2.so) =3D=3D13594=3D=3D by 0x4000B115: _dl_catch_error_internal (in /lib/ld-= 2.3.2.so) =3D=3D13594=3D=3D by 0x406B1F5B: _dl_open (in /lib/libc-2.3.2.so) =3D=3D13594=3D=3D =3D=3D13594=3D=3D ---- Attach to GDB ? --- [Return/N/n/Y/y/C/c] ---- y =3D=3D13594=3D=3D starting GDB with cmd: -nw /proc/13594/exe 13594 /bin/sh: line 1: -nw: command not found =3D=3D13594=3D=3D =3D=3D13594=3D=3D GDB has detached. Valgrind regains control. We contin= ue. =3D=3D13594=3D=3D =3D=3D13594=3D=3D Conditional jump or move depends on uninitialised value= (s) =3D=3D13594=3D=3D at 0x40008B05: _dl_relocate_object_internal (in=20 /lib/ld-2.3.2.so) =3D=3D13594=3D=3D by 0x406B1CF0: (within /lib/libc-2.3.2.so) =3D=3D13594=3D=3D by 0x4000B115: _dl_catch_error_internal (in /lib/ld-= 2.3.2.so) =3D=3D13594=3D=3D by 0x406B1F5B: _dl_open (in /lib/libc-2.3.2.so) =3D=3D13594=3D=3D =3D=3D13594=3D=3D ---- Attach to GDB ? --- [Return/N/n/Y/y/C/c] ---- |