mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-23 07:47:49 +00:00
gdb: fix riscv record-full push
When I (Guinevere) pushed commit
b9c7eed0c2 I accidentally used an outdated
version of the patch. This current patch fixes the importation of that
patch based on the actually approved version instead.
This commit is contained in:
@@ -270,7 +270,7 @@ riscv64_canonicalize_syscall (int syscall)
|
|||||||
case 239: return gdb_sys_move_pages;
|
case 239: return gdb_sys_move_pages;
|
||||||
/* case 240: return gdb_sys_rt_tgsigqueueinfo; */
|
/* case 240: return gdb_sys_rt_tgsigqueueinfo; */
|
||||||
/* case 241: return gdb_sys_perf_event_open; */
|
/* case 241: return gdb_sys_perf_event_open; */
|
||||||
/* case 242: return gdb_sys_accept4; */
|
case 242: return gdb_sys_accept4;
|
||||||
/* case 243: return gdb_sys_recvmmsg; */
|
/* case 243: return gdb_sys_recvmmsg; */
|
||||||
/* case 258: return gdb_sys_riscv_hwprobe; */
|
/* case 258: return gdb_sys_riscv_hwprobe; */
|
||||||
/* case 259: return gdb_sys_riscv_flush_icache; */
|
/* case 259: return gdb_sys_riscv_flush_icache; */
|
||||||
@@ -336,6 +336,22 @@ riscv64_canonicalize_syscall (int syscall)
|
|||||||
/* case 448: return gdb_sys_process_mrelease; */
|
/* case 448: return gdb_sys_process_mrelease; */
|
||||||
/* case 449: return gdb_sys_futex_waitv; */
|
/* case 449: return gdb_sys_futex_waitv; */
|
||||||
/* case 450: return gdb_sys_set_mempolicy_home_node; */
|
/* case 450: return gdb_sys_set_mempolicy_home_node; */
|
||||||
|
/* case 451: return gdb_sys_cachestat; */
|
||||||
|
/* case 452: return gdb_sys_fchmodat2; */
|
||||||
|
/* case 453: return gdb_sys_map_shadow_stack; */
|
||||||
|
/* case 454: return gdb_sys_futex_wake; */
|
||||||
|
/* case 455: return gdb_sys_futex_wait; */
|
||||||
|
/* case 456: return gdb_sys_futex_requeue; */
|
||||||
|
/* case 457: return gdb_sys_statmount; */
|
||||||
|
/* case 458: return gdb_sys_listmount; */
|
||||||
|
/* case 459: return gdb_sys_lsm_get_self_attr; */
|
||||||
|
/* case 460: return gdb_sys_lsm_set_self_attr; */
|
||||||
|
/* case 461: return gdb_sys_lsm_list_modules; */
|
||||||
|
/* case 462: return gdb_sys_mseal; */
|
||||||
|
/* case 463: return gdb_sys_setxattrat; */
|
||||||
|
/* case 464: return gdb_sys_getxattrat; */
|
||||||
|
/* case 465: return gdb_sys_listxattrat; */
|
||||||
|
/* case 466: return gdb_sys_removexattrat; */
|
||||||
default:
|
default:
|
||||||
return gdb_sys_no_syscall;
|
return gdb_sys_no_syscall;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,8 +15,8 @@
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
#ifndef RISCV_LINUX_TDEP_H
|
#ifndef GDB_RISCV_LINUX_TDEP_H
|
||||||
#define RISCV_LINUX_TDEP_H
|
#define GDB_RISCV_LINUX_TDEP_H
|
||||||
|
|
||||||
#include "linux-record.h"
|
#include "linux-record.h"
|
||||||
|
|
||||||
@@ -26,4 +26,4 @@
|
|||||||
|
|
||||||
extern enum gdb_syscall riscv64_canonicalize_syscall (int syscall);
|
extern enum gdb_syscall riscv64_canonicalize_syscall (int syscall);
|
||||||
|
|
||||||
#endif /* RISCV_LINUX_TDEP_H */
|
#endif /* GDB_RISCV_LINUX_TDEP_H */
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
# options:
|
# options:
|
||||||
# -h, --help show this help message and exit
|
# -h, --help show this help message and exit
|
||||||
# -i INPUT, --input INPUT
|
# -i INPUT, --input INPUT
|
||||||
# path to riscv linux syscalls (riscv-glibc/sysdeps/unix/sysv/linux/riscv/rv64/arch-syscall.h)
|
# path to riscv linux syscalls (glibc/sysdeps/unix/sysv/linux/riscv/rv64/arch-syscall.h)
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import re
|
import re
|
||||||
@@ -142,7 +142,7 @@ def setup_parser() -> argparse.ArgumentParser:
|
|||||||
"--input",
|
"--input",
|
||||||
type=_Path,
|
type=_Path,
|
||||||
required=True,
|
required=True,
|
||||||
help="path to riscv linux syscalls (riscv-glibc/sysdeps/unix/sysv/linux/riscv/rv64/arch-syscall.h)",
|
help="path to riscv linux syscalls (glibc/sysdeps/unix/sysv/linux/riscv/rv64/arch-syscall.h)",
|
||||||
)
|
)
|
||||||
return parser
|
return parser
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user