debugger icon indicating copy to clipboard operation
debugger copied to clipboard

Not able to compile on ubuntu 12 (64bit)

Open ChandraKoduru opened this issue 8 years ago • 1 comments

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/

ChandraKoduru avatar Nov 03 '16 06:11 ChandraKoduru

@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.

satabdidas avatar Nov 06 '16 04:11 satabdidas