aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python/py-section-script.py
diff options
context:
space:
mode:
authorPedro Alves <pedro@palves.net>2021-07-02 11:46:40 +0100
committerPedro Alves <pedro@palves.net>2023-11-13 14:16:11 +0000
commit9d124749d2a6fce91647b2b00475b6293c1c59df (patch)
tree33f2d836543facaf4fe23ef073d7a050cad09826 /gdb/testsuite/gdb.python/py-section-script.py
parente8a625d126e4be34d23b5df535bed134b2bb3156 (diff)
downloadbinutils-9d124749d2a6fce91647b2b00475b6293c1c59df.zip
binutils-9d124749d2a6fce91647b2b00475b6293c1c59df.tar.gz
binutils-9d124749d2a6fce91647b2b00475b6293c1c59df.tar.bz2
gdb/testsuite/lib/my-syscalls.S: Refactor new SYSCALL macro
Refactor the syscall assembly code in gdb/testsuite/lib/my-syscalls.S behind a SYSCALL macro so that it's easy to add new syscalls without duplicating code. Note that the way the macro is implemented, it only works correctly for syscalls with up to 3 arguments, and, if the syscall doesn't return (the macro doesn't bother to save/restore callee-saved registers). The following patch will want to use the macro to define a wrapper for the "exit" syscall, so the limitations continue to be sufficient. Change-Id: I8acf1463b11a084d6b4579aaffb49b5d0dea3bba Reviewed-By: Andrew Burgess <aburgess@redhat.com>
Diffstat (limited to 'gdb/testsuite/gdb.python/py-section-script.py')
0 files changed, 0 insertions, 0 deletions