> Effectively, vgdb only has -d option. > In this case, you must give the option -v -d to valgrind so as to > have more trace from the Valgrind gdbserver. Here is the trace with -v -d options given to valgrind.
==4562== Use of uninitialised value of size 8 ==4562== at 0x7AAC2CF: __printf_fp (printf_fp.c:802) ==4562== by 0x7AA619F: vfprintf (vfprintf.c:1616) ==4562== by 0x7AAF659: printf (printf.c:35) --4562:1:mallocfr deferred_reclaimSuperblock at 0x40BBDA000 (pszB 65504) (prev 0x40BBDA000) owner VALGRIND/demangle ==4562== by 0x50917A9: gpgpu_sim::cycle() (gpu-sim.cc:1447) --4562:1:mallocfr deferred_reclaimSuperblock at 0x40BBDA000 (pszB 65504) (prev 0x40BBDA000) owner VALGRIND/demangle ==4562== by 0x5152493: gpgpu_sim_thread_concurrent(void*) (gpgpusim_entrypoint.cc:135) ==4562== by 0x7DE89C9: start_thread (pthread_create.c:300) ==4562== by 0x7B45CDC: clone (clone.S:112) ==4562== ==4562== (action on error) vgdb me ... --4562:1:gdbsrv entering call_gdbserver core_reason ... pid 4562 tid 2 status VgTs_Runnable sched_jmpbuf_valid 1 --4562:1:gdbsrv enter valgrind_wait pid 4562 --4562:1:gdbsrv stop pc is 0x7AAC2CF --4562:1:gdbsrv exit valgrind_wait returns ptid id 4606 stop_pc 0x7AAC2CF: __printf_fp (printf_fp.c:802) signal 20 --4562:1:gdbsrv Writing resume reply for 4606 --4562:1:gdbsrv putpkt ("$T1406:50a4820c0*"00;07:60a0820c0*"00;10:cfc2aa070*"00;thread:11fe;#66"); [no ack] --4562:1:gdbsrv getpkt ("C14"); [no ack] --4562:1:gdbsrv set_desired_inferior use_general 0 found 0x402514BE0 tid 1 lwpid 4562 --4562:1:gdbsrv resume_info thread 4562 leave_stopped 0 step 0 sig 17 stepping 0 --4562:1:gdbsrv stop pc is 0x7B0969D --4562:1:gdbsrv stop_pc 0x7AAC2CF changed to be resume_pc 0x7B0969D: ??? (syscall-template.S:82) ==4562== Continuing ... ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Valgrind-users mailing list Valgrind-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/valgrind-users