On Fri, 2012-02-24 at 09:46 +0800, jee wrote: > the sameļ¼can not pause. > > 2012/2/24 Philippe Waroquiers <philippe.waroqui...@skynet.be> > On Thu, 2012-02-23 at 21:33 +0800, jee wrote: > > like this: > > in gdb: > > 137 while(fgets(buff, PATH_MAX, p_file)){ > > (gdb) //when i press n, ...... there's no n,it's dead -_-! > > > What happens if you press Control-c ? > > Control-c should indicate to the Valgrind gdbserver to give > back the > control to gdb, and let you do backtrace, info threads, > etc ... > to see where it is hanging.
When it is deadlock, strace should indicate what is being done. An alternative : you might try to understand the difference between a native run and a run under valgrind using a gdb on the native run and a gdb connected to Valgrind gdbserver (using --vgdb=full) and then using si gdb command from a certain point onwards. Philippe ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Valgrind-users mailing list Valgrind-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/valgrind-users