linux-record: Simplify with record_mem_at_reg()
authorAndreas Arnez <arnez@linux.vnet.ibm.com>
Thu, 17 Mar 2016 08:58:57 +0000 (09:58 +0100)
committerAndreas Arnez <arnez@linux.vnet.ibm.com>
Thu, 17 Mar 2016 08:58:57 +0000 (09:58 +0100)
commit5fd0888aff1abfa6e06cfa48164e72c48072ac79
tree2f352270698ebaa0fe0c00d1005ffe6349836d0d
parent0fc8f115fd95a88ff2ce4c839b634b39d200c734
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.
gdb/ChangeLog
gdb/linux-record.c
This page took 0.024016 seconds and 4 git commands to generate.