mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-26 06:30:33 +00:00
Fixed reg_profile adding RDebug param.
This commit is contained in:
parent
b910c54714
commit
5db2925d1b
@ -298,7 +298,7 @@ static int r_debug_native_wait(int pid) {
|
||||
}
|
||||
|
||||
// TODO: why strdup here?
|
||||
static const char *r_debug_native_reg_profile() {
|
||||
static const char *r_debug_native_reg_profile(RDebug *dbg) {
|
||||
#if __WINDOWS__
|
||||
return strdup (
|
||||
"=pc eip\n"
|
||||
|
@ -37,7 +37,7 @@ R_API int r_debug_use(RDebug *dbg, const char *str) {
|
||||
}
|
||||
}
|
||||
if (dbg->h && dbg->h->reg_profile) {
|
||||
char *p = dbg->h->reg_profile ();
|
||||
char *p = dbg->h->reg_profile (dbg);
|
||||
if (p == NULL) {
|
||||
eprintf ("Cannot retrieve reg profile from debug plugin (%s)\n", dbg->h->name);
|
||||
} else {
|
||||
|
@ -165,7 +165,7 @@ typedef struct r_debug_plugin_t {
|
||||
// XXX: specify, pid, tid, or RDebug ?
|
||||
int (*reg_read)(struct r_debug_t *dbg, int type, ut8 *buf, int size);
|
||||
int (*reg_write)(int pid, int tid, int type, const ut8 *buf, int size); //XXX struct r_regset_t regs);
|
||||
char* (*reg_profile)();
|
||||
char* (*reg_profile)(RDebug *dbg);
|
||||
/* memory */
|
||||
RList *(*map_get)(RDebug *dbg);
|
||||
ut64 (*map_alloc)(RDebug *dbg, RDebugMap *map);
|
||||
|
Loading…
Reference in New Issue
Block a user