aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorAndreas Arnez <arnez@linux.vnet.ibm.com>2016-03-17 09:58:57 +0100
committerAndreas Arnez <arnez@linux.vnet.ibm.com>2016-03-17 09:58:57 +0100
commit5fd0888aff1abfa6e06cfa48164e72c48072ac79 (patch)
tree2f352270698ebaa0fe0c00d1005ffe6349836d0d /gdb/ChangeLog
parent0fc8f115fd95a88ff2ce4c839b634b39d200c734 (diff)
downloadfsf-binutils-gdb-5fd0888aff1abfa6e06cfa48164e72c48072ac79.zip
fsf-binutils-gdb-5fd0888aff1abfa6e06cfa48164e72c48072ac79.tar.gz
fsf-binutils-gdb-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 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 076b104..2762546 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
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
spaces.