case amd64_sys_arch_prctl:
case amd64_x32_sys_arch_prctl:
- return -1; /* Note */
+ return gdb_sys_no_syscall; /* Note */
case amd64_sys_adjtimex:
case amd64_x32_sys_adjtimex:
return gdb_sys_move_pages;
default:
- return -1;
+ return gdb_sys_no_syscall;
}
}
{
int ret;
ULONGEST syscall_native;
- enum gdb_syscall syscall_gdb = -1;
+ enum gdb_syscall syscall_gdb = gdb_sys_no_syscall;
regcache_raw_read_unsigned (regcache, AMD64_RAX_REGNUM, &syscall_native);
break;
}
- syscall_gdb = amd64_canonicalize_syscall (syscall_native);
+ syscall_gdb
+ = amd64_canonicalize_syscall ((enum amd64_syscall) syscall_native);
- if (syscall_gdb < 0)
+ if (syscall_gdb == gdb_sys_no_syscall)
{
printf_unfiltered (_("Process record and replay target doesn't "
"support syscall number %s\n"),
set_gdbarch_displaced_step_location (gdbarch,
linux_displaced_step_location);
- set_gdbarch_get_siginfo_type (gdbarch, linux_get_siginfo_type);
-
set_gdbarch_process_record (gdbarch, i386_process_record);
set_gdbarch_process_record_signal (gdbarch, amd64_linux_record_signal);
}