changing stack and instruction pointer

Andrew Cagney cagney@gnu.org
Mon Nov 1 18:22:00 GMT 2004


Kip Macy wrote:
> Any user-level threads package would do the same. There must be
> something more going on.

Yes.  Is valgrind doing something else like playing with ptrace?

> On Mon, 1 Nov 2004, Bob Rossi wrote:
> 
> 
>>Hi,
>>
>>If a program modifies the stack and instruction pointer ( like valgrind
>>does ), is it possible to debug this program? For some reason, after
>>valgrind sets these registers, GDB doesn't seem to understand anything about
>>the program.
>>
>>Is it possible to debug a program like this?
>>
>>Thanks,
>>Bob Rossi
>>
> 
> 



More information about the Gdb mailing list