diff options
author | Tom de Vries <tdevries@suse.de> | 2025-03-18 08:45:54 +0100 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2025-03-18 08:45:54 +0100 |
commit | 57d2ceb311aaaf02fe6fae194e1280001a087b6f (patch) | |
tree | 8e18230f7e811b03ff47289f884c936d12711d90 /gdb/features/or1k-linux.c | |
parent | 7b2a5f7183b946a0a2644a505892b7e0aefbbfd1 (diff) | |
download | binutils-57d2ceb311aaaf02fe6fae194e1280001a087b6f.zip binutils-57d2ceb311aaaf02fe6fae194e1280001a087b6f.tar.gz binutils-57d2ceb311aaaf02fe6fae194e1280001a087b6f.tar.bz2 |
[gdb/tdep] Use SYSCALL_MAP_RENAME for aarch64 and loongarch
There are currently two functions using macros SYSCALL_MAP and
UNSUPPORTED_SYSCALL_MAP: aarch64_canonicalize_syscall, and
loongarch_canonicalize_syscall.
Here [1] I propose to do the same in i386_canonicalize_syscall, using one
additional macro: SYSCALL_MAP_RENAME.
Add the same macro in aarch64_canonicalize_syscall and
loongarch_canonicalize_syscall, and use it to map aarch64_sys_mmap and
loongarch_sys_mmap to gdb_sys_mmap2.
While we're at it:
- reformat the macro definitions to be more readable,
- add missing macro undefs in aarch64_canonicalize_syscall, and
- fix indentation in aarch64_canonicalize_syscall.
No functional changes.
Tested by rebuilding on x86_64-linux.
Reviewed-By: Alexandra Petlanova Hajkova <ahajkova@redhat.com>
[1] https://sourceware.org/pipermail/gdb-patches/2025-March/216230.html
Diffstat (limited to 'gdb/features/or1k-linux.c')
0 files changed, 0 insertions, 0 deletions