Fixed reg_profile adding RDebug param.

This commit is contained in:
Eloi Sanfelix 2011-05-07 18:19:16 +02:00
parent b910c54714
commit 5db2925d1b
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

@ -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);