mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-24 22:00:18 +00:00
Honor SN in syscall resolution on disasm
This commit is contained in:
parent
8cd6077600
commit
eb272dc6f3
@ -1476,7 +1476,7 @@ static char *get_reg_profile(RAnal *anal) {
|
||||
"=SF nf\n"
|
||||
"=OF vf\n"
|
||||
"=CF cf\n"
|
||||
"=SN x0\n"
|
||||
"=SN x8\n"
|
||||
|
||||
/* 8bit sub-registers */
|
||||
"gpr b0 .8 0 0\n"
|
||||
|
@ -400,7 +400,7 @@ R_API char *cmd_syscall_dostr(RCore *core, int n) {
|
||||
if (n == -1) {
|
||||
n = (int)r_debug_reg_get (core->dbg, "oeax");
|
||||
if (n == 0 || n == -1) {
|
||||
const char *a0 = r_reg_get_name (core->anal->reg, R_REG_NAME_A0);
|
||||
const char *a0 = r_reg_get_name (core->anal->reg, R_REG_NAME_SN);
|
||||
n = (int)r_debug_reg_get (core->dbg, a0);
|
||||
}
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ return strdup (
|
||||
"=SF nf\n"
|
||||
"=OF vf\n"
|
||||
"=CF cf\n"
|
||||
"=SN ox0\n"
|
||||
"=SN ox8\n"
|
||||
#endif
|
||||
"gpr x0 .64 0 0\n"
|
||||
"gpr x1 .64 8 0\n"
|
||||
|
@ -48,22 +48,22 @@ truncate=0,45
|
||||
ftruncate=0,46
|
||||
fallocate=0,47
|
||||
faccessat=0,48
|
||||
chdir=0,49
|
||||
fchdir=0,50
|
||||
chroot=0,51
|
||||
chdir=0,49,1,z
|
||||
fchdir=0,50,1,i
|
||||
chroot=0,51,1,z
|
||||
fchmod=0,52
|
||||
fchmodat=0,53
|
||||
fchownat=0,54
|
||||
fchown=0,55
|
||||
openat=0,56
|
||||
close=0,57
|
||||
close=0,57,1,i
|
||||
vhangup=0,58
|
||||
pipe2=0,59
|
||||
quotactl=0,60
|
||||
getdents64=0,61
|
||||
lseek=0,62
|
||||
read=0,63
|
||||
write=0,64
|
||||
read=0,63,3,ipi
|
||||
write=0,64,3,izi
|
||||
readv=0,65
|
||||
writev=0,66
|
||||
pread64=0,67
|
||||
@ -92,7 +92,7 @@ acct=0,89
|
||||
capget=0,90
|
||||
capset=0,91
|
||||
personality=0,92
|
||||
exit=0,93
|
||||
exit=0,93,1,i
|
||||
exit_group=0,94
|
||||
waitid=0,95
|
||||
set_tid_address=0,96
|
||||
@ -171,16 +171,16 @@ getcpu=0,168
|
||||
gettimeofday=0,169
|
||||
settimeofday=0,170
|
||||
adjtimex=0,171
|
||||
getpid=0,172
|
||||
getppid=0,173
|
||||
getuid=0,174
|
||||
geteuid=0,175
|
||||
getgid=0,176
|
||||
getegid=0,177
|
||||
gettid=0,178
|
||||
sysinfo=0,179
|
||||
getpid=0,172,0
|
||||
getppid=0,173,0
|
||||
getuid=0,174,0
|
||||
geteuid=0,175,0
|
||||
getgid=0,176,0
|
||||
getegid=0,177,0
|
||||
gettid=0,178,0
|
||||
sysinfo=0,179,0
|
||||
mq_open=0,180
|
||||
mq_unlink=0,181
|
||||
mq_unlink=0,181,1,z
|
||||
mq_timedsend=0,182
|
||||
mq_timedreceive=0,183
|
||||
mq_notify=0,184
|
||||
@ -261,11 +261,11 @@ finit_module=0,273
|
||||
sched_setattr=0,274
|
||||
sched_getattr=0,275
|
||||
syscalls=0,276
|
||||
open=0,1024
|
||||
open=0,1024,3,zxx
|
||||
link=0,1025
|
||||
unlink=0,1026
|
||||
mknod=0,1027
|
||||
chmod=0,1028
|
||||
chmod=0,1028,2, zx
|
||||
chown=0,1029
|
||||
mkdir=0,1030
|
||||
rmdir=0,1031
|
||||
@ -278,7 +278,7 @@ utimes=0,1037
|
||||
stat=0,1038
|
||||
lstat=0,1039
|
||||
pipe=0,1040
|
||||
dup2=0,1041
|
||||
dup2=0,1041,2,ii
|
||||
epoll_create=0,1042
|
||||
inotify_init=0,1043
|
||||
eventfd=0,1044
|
||||
@ -316,4 +316,4 @@ bdflush=0,1075
|
||||
umount=0,1076
|
||||
uselib=0,1077
|
||||
_sysctl=0,1078
|
||||
fork=0,1079
|
||||
fork=0,1079,0,
|
||||
|
Loading…
Reference in New Issue
Block a user