summaryrefslogtreecommitdiff
path: root/gdb/linux-record.c
diff options
context:
space:
mode:
authorHui Zhu <teawater@gmail.com>2009-05-24 04:42:51 +0000
committerHui Zhu <teawater@gmail.com>2009-05-24 04:42:51 +0000
commit5e31abdf71821ee0b43ee64f95b3ee7d161835b5 (patch)
tree902c59ded842c4635fcf52fcf02a61d75596742d /gdb/linux-record.c
parent2acc282a5a9d6787b2627abdc41992c9a9949e51 (diff)
downloadbinutils-gdb-5e31abdf71821ee0b43ee64f95b3ee7d161835b5.tar.gz
* i386-linux-tdep.c (I386_LINUX_RECORD_SIZE_*,
I386_LINUX_RECORD_IOCTL_*, I386_LINUX_RECORD_FCNTL_*) Removed. (i386_linux_init_abi): Change size of record from macros to numbers. * i386-linux-tdep.c (i386_linux_init_abi): Remove size_char. * linux-record.c (record_linux_system_call): Ditto. * linux-record.h (linux_record_tdep): Ditto.
Diffstat (limited to 'gdb/linux-record.c')
-rw-r--r--gdb/linux-record.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/linux-record.c b/gdb/linux-record.c
index d0898ffe5e5..04ae26aced3 100644
--- a/gdb/linux-record.c
+++ b/gdb/linux-record.c
@@ -345,7 +345,8 @@ record_linux_system_call (int num, struct regcache *regcache,
{
regcache_raw_read (regcache, tdep->arg3,
(gdb_byte *) & tmpu32);
- if (record_arch_list_add_mem (tmpu32, tdep->size_char))
+ /* This syscall affect a char size memory. */
+ if (record_arch_list_add_mem (tmpu32, 1))
return -1;
}
else if (tmpu32 == tdep->ioctl_TIOCGSERIAL)