]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[gdb/tdep] Fix mmap syscall mapping
authorTom de Vries <tdevries@suse.de>
Sun, 30 Mar 2025 14:45:25 +0000 (16:45 +0200)
committerTom de Vries <tdevries@suse.de>
Sun, 30 Mar 2025 14:45:25 +0000 (16:45 +0200)
commit6f3dab758fbcb7814ddfe09fb8224a38f45eb35c
tree30d2bfb9e0079fbdf40862868e9ed8fb5e5796f5
parent79580fac6f582027aa3d51952728e34391c7d6be
[gdb/tdep] Fix mmap syscall mapping

There are a few spots where an mmap system call is mapped onto enum
gdb_syscall value gdb_sys_mmap2.

Strictly speaking, this is incorrect.

Fix this by mapping to enum gdb_syscall value gdb_old_mmap instead.

No functional changes: both gdb_old_mmap and gdb_sys_mmap2 are handled the
same in record_linux_system_call.

Tested by rebuilding on x86_64-linux.
gdb/aarch64-linux-tdep.c
gdb/amd64-linux-tdep.c
gdb/loongarch-linux-tdep.c