Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to compile on ubuntu 12 (64bit) #1

Open
ChandraKoduru opened this issue Nov 3, 2016 · 1 comment
Open

Not able to compile on ubuntu 12 (64bit) #1

ChandraKoduru opened this issue Nov 3, 2016 · 1 comment

Comments

@ChandraKoduru
Copy link

ChandraKoduru commented Nov 3, 2016

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/

@satabdidas
Copy link
Owner

satabdidas commented Nov 6, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants