You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to compile the debugger using 'gcc -w debugger.c', I get following error.
debugger.c: In function ‘set_rip’:
debugger.c:80:7: error: ‘struct user_regs_struct’ has no member named ‘eip’
regs.eip = addr;
^
debugger.c: In function ‘get_rip’:
debugger.c:88:14: error: ‘struct user_regs_struct’ has no member named ‘eip’
return regs.eip;
Looks like the c program is targetted towards i386. Would you be able to patch it so that it works on x64 also ?
@ChandraKoduru I have made the fix. If you are going to run it, please change the address on which you are going to set the breakpoint. I've got kinda lazy to make it better.
Hi,
When I try to compile the debugger using 'gcc -w debugger.c', I get following error.
debugger.c: In function ‘set_rip’:
debugger.c:80:7: error: ‘struct user_regs_struct’ has no member named ‘eip’
regs.eip = addr;
^
debugger.c: In function ‘get_rip’:
debugger.c:88:14: error: ‘struct user_regs_struct’ has no member named ‘eip’
return regs.eip;
Looks like the c program is targetted towards i386. Would you be able to patch it so that it works on x64 also ?
Googling..I found this to be helpful: http://theantway.com/2013/01/notes-for-playing-with-ptrace-on-64-bits-ubuntu-12-10/
The text was updated successfully, but these errors were encountered: