mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-04 19:47:31 +00:00
Fix build and autocomplete cd
This commit is contained in:
parent
61091809b3
commit
d5f2661cbe
@ -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) ||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user