Skip to content
This repository has been archived by the owner on Nov 17, 2021. It is now read-only.

Document radare2 debugger interface #22

Open
Wenzel opened this issue Sep 11, 2018 · 3 comments
Open

Document radare2 debugger interface #22

Wenzel opened this issue Sep 11, 2018 · 3 comments

Comments

@Wenzel
Copy link
Owner

Wenzel commented Sep 11, 2018

We will have to understand how radare2 debugger internals works to figure out how we should implement some specific features of r2vmi

@Wenzel
Copy link
Owner Author

Wenzel commented Sep 11, 2018

From https://github.com/radare/radare2/blob/b25653ec2ae48bad9a554753d0c21ce86b0e7e0a/libr/debug/p/debug_native.c#L1523:

/*
 * set or unset breakpoints...
 *
 * we only handle the case for hardware breakpoints here. otherwise,
 * we let the caller handle the work.
 */

So if __breakpoint returns false, the caller will handle the software breakpoints ?

@Wenzel
Copy link
Owner Author

Wenzel commented Sep 13, 2018

I found a documentation regarding debugger internals:
https://github.com/radare/radare2/blob/master/doc/debug-internals.md

@Wenzel
Copy link
Owner Author

Wenzel commented Sep 13, 2018

Yes the caller is handling writing the software breakpoint:
https://github.com/radare/radare2/blob/master/libr/bp/bp_io.c#L49

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

No branches or pull requests

1 participant