diff options
author | Andreas Arnez <arnez@linux.vnet.ibm.com> | 2016-03-17 09:58:57 +0100 |
---|---|---|
committer | Andreas Arnez <arnez@linux.vnet.ibm.com> | 2016-03-17 09:58:57 +0100 |
commit | 5fd0888aff1abfa6e06cfa48164e72c48072ac79 (patch) | |
tree | 2f352270698ebaa0fe0c00d1005ffe6349836d0d /elfcpp/mips.h | |
parent | 0fc8f115fd95a88ff2ce4c839b634b39d200c734 (diff) | |
download | binutils-5fd0888aff1abfa6e06cfa48164e72c48072ac79.zip binutils-5fd0888aff1abfa6e06cfa48164e72c48072ac79.tar.gz binutils-5fd0888aff1abfa6e06cfa48164e72c48072ac79.tar.bz2 |
linux-record: Simplify with record_mem_at_reg()
The function record_linux_system_call() often records a memory area
whose address is contained in a register. So far this required two
function calls: one for fetching the register value, and another one for
recording the memory area. These two function calls are now merged into
a new local helper function, and all occurrences are adjusted. This
reduces the source code and makes it more readable.
gdb/ChangeLog:
* linux-record.c (record_mem_at_reg): New helper function.
(record_linux_system_call): Exploit new helper function where
applicable.
Diffstat (limited to 'elfcpp/mips.h')
0 files changed, 0 insertions, 0 deletions