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.
This commit is contained in:
Andreas Arnez 2016-03-17 09:58:57 +01:00
parent 0fc8f115fd
commit 5fd0888aff
2 changed files with 170 additions and 414 deletions

View file

@ -1,3 +1,9 @@
2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
* linux-record.c (record_mem_at_reg): New helper function.
(record_linux_system_call): Exploit new helper function where
applicable.
2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
* linux-record.c: Fix whitespace issues; tabify, remove trailing

File diff suppressed because it is too large Load diff