Re: [Valgrind-users] Behavior diffenert with valgrind without valgrind

2012-02-26 Thread jee
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

Re: [Valgrind-users] Behavior diffenert with valgrind without valgrind

2012-02-25 Thread Philippe Waroquiers
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)){

[Valgrind-users] Behavior diffenert with valgrind without valgrind

2012-02-23 Thread jee
My code change itself with running, and, I use VALGRIND_DISCARD_TRANSLATIONS with I changed the function's assembly code. and my code is pure C++. i rewrite the assembly code like this: inline hook: mov addr, %rax jmp *%rax I insert this assembly code to the begin of functions, I can run my elf

Re: [Valgrind-users] Behavior diffenert with valgrind without valgrind

2012-02-23 Thread Eliot Moss
On 2/23/2012 7:51 AM, jee wrote: My code change itself with running, and, I use VALGRIND_DISCARD_TRANSLATIONS with I changed the function's assembly code. and my code is pure C++. i rewrite the assembly code like this: inline hook: mov addr, %rax jmp *%rax I insert this assembly code to

Re: [Valgrind-users] Behavior diffenert with valgrind without valgrind

2012-02-23 Thread Philippe Waroquiers
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

Re: [Valgrind-users] Behavior diffenert with valgrind without valgrind

2012-02-23 Thread jee
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