I can't stop the gdb useing ctrl-c.
Is there any need to "si" ? If so, this is a bug of valgrind, they should
make sure of the assembly code is right.
"a run under valgrind using a gdb on the native run" you mean" gdb --args
valgrind [args]" ?
2012/2/25 Philippe Waroquiers <philippe.waroqui...@skynet.be>
> 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
>
>
>
>
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users