Fix build and autocomplete cd

This commit is contained in:
pancake 2015-06-26 00:32:01 +02:00
parent 61091809b3
commit d5f2661cbe
2 changed files with 8 additions and 7 deletions

View File

@ -349,6 +349,7 @@ static int autocomplete(RLine *line) {
if ((!memcmp (line->buffer.data, "o ", 2)) ||
!memcmp (line->buffer.data, "o+ ", 3) ||
!memcmp (line->buffer.data, "oc ", 3) ||
!memcmp (line->buffer.data, "cd ", 3) ||
!memcmp (line->buffer.data, "on ", 3) ||
!memcmp (line->buffer.data, "op ", 3) ||
!memcmp (line->buffer.data, ". ", 2) ||

View File

@ -144,14 +144,14 @@ static int r_debug_wind_detach (int pid) {
}
static char *r_debug_wind_reg_profile(RDebug *dbg) {
if (dbg->arch != R_SYS_ARCH_X86)
if (!dbg || dbg->arch != R_SYS_ARCH_X86)
return NULL;
if (dbg->bits == R_SYS_BITS_32)
#include "native/reg-w32.h"
if (dbg->bits == R_SYS_BITS_64)
#include "native/reg-w64.h"
if (dbg->bits == R_SYS_BITS_32) {
#include "native/reg/windows-x86.h"
}
if (dbg->bits == R_SYS_BITS_64) {
#include "native/reg/windows-x64.h"
}
return NULL;
}