Fix w32 debugger

This commit is contained in:
SkUaTeR 2016-05-11 13:09:40 +02:00 committed by radare
parent 3d89f2cc21
commit 75ea9cea3c
2 changed files with 5 additions and 2 deletions

View File

@ -84,7 +84,7 @@ static ut64 getBaddrFromDebugger(RCore *r, const char *file) {
if (!strcmp ("w32dbg", d->plugin->name)) {
RIOW32Dbg *g = d->data;
r->io->desc->fd = g->pid;
//r_debug_attach (r->dbg,g->pid); // no es necesario ya se hacen unos cuantos attach antes y despues ....
r_debug_attach (r->dbg,g->pid);
}
return r->io->winbase;
#else

View File

@ -884,7 +884,10 @@ static int r_debug_native_kill (RDebug *dbg, int pid, int tid, int sig) {
int ret = false;
if (pid == 0) pid = dbg->pid;
#if __WINDOWS__ && !__CYGWIN__
ret = w32_terminate_process (dbg, pid);
if (sig==0)
ret = true;
else
ret = w32_terminate_process (dbg, pid);
#else
#if 0
if (thread) {