+2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
+
+ * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add size_time_t.
+ * amd64-linux-tdep.c (amd64_linux_init_abi): Add size_time_t.
+ (amd64_x32_linux_init_abi): Add size_time_t.
+ * arm-linux-tdep.c (arm_linux_init_abi): Add size_time_t.
+ * i386-linux-tdep.c (i386_linux_init_abi): Add size_time_t.
+ * linux-record.c (record_linux_system_call): Add time, waitpid, pipe
+ handling.
+ * linux-record.h (struct linux_record_tdep): Add size_time_t.
+ * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Add size_time_t.
+
2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
* linux-record.c (record_linux_msghdr): Fix msg_namelen handling.
aarch64_linux_record_tdep.size_hayes_esp_config = 12;
aarch64_linux_record_tdep.size_size_t = 8;
aarch64_linux_record_tdep.size_iovec = 16;
+ aarch64_linux_record_tdep.size_time_t = 8;
/* These values are the second argument of system call "sys_ioctl".
They are obtained from Linux Kernel source. */
amd64_linux_record_tdep.size_hayes_esp_config = 12;
amd64_linux_record_tdep.size_size_t = 8;
amd64_linux_record_tdep.size_iovec = 16;
+ amd64_linux_record_tdep.size_time_t = 8;
/* These values are the second argument of system call "sys_fcntl"
and "sys_fcntl64". They are obtained from Linux Kernel source. */
amd64_x32_linux_record_tdep.size_hayes_esp_config = 12;
amd64_x32_linux_record_tdep.size_size_t = 8;
amd64_x32_linux_record_tdep.size_iovec = 16;
+ amd64_x32_linux_record_tdep.size_time_t = 8;
/* These values are the second argument of system call "sys_fcntl"
and "sys_fcntl64". They are obtained from Linux Kernel source. */
arm_linux_record_tdep.size_hayes_esp_config = 12;
arm_linux_record_tdep.size_size_t = 4;
arm_linux_record_tdep.size_iovec = 8;
+ arm_linux_record_tdep.size_time_t = 4;
/* These values are the second argument of system call "sys_ioctl".
They are obtained from Linux Kernel source. */
i386_linux_record_tdep.size_hayes_esp_config = 12;
i386_linux_record_tdep.size_size_t = 4;
i386_linux_record_tdep.size_iovec = 8;
+ i386_linux_record_tdep.size_time_t = 4;
/* These values are the second argument of system call "sys_ioctl".
They are obtained from Linux Kernel source. */
case gdb_sys_write:
case gdb_sys_open:
case gdb_sys_close:
+ break;
+
case gdb_sys_waitpid:
+ regcache_raw_read_unsigned (regcache, tdep->arg2, &tmpulongest);
+ if (tmpulongest)
+ if (record_full_arch_list_add_mem ((CORE_ADDR) tmpulongest,
+ tdep->size_int))
+ return -1;
+ break;
+
case gdb_sys_creat:
case gdb_sys_link:
case gdb_sys_unlink:
case gdb_sys_execve:
case gdb_sys_chdir:
+ break;
+
case gdb_sys_time:
+ regcache_raw_read_unsigned (regcache, tdep->arg1, &tmpulongest);
+ if (tmpulongest)
+ if (record_full_arch_list_add_mem ((CORE_ADDR) tmpulongest,
+ tdep->size_time_t))
+ return -1;
+ break;
+
case gdb_sys_mknod:
case gdb_sys_chmod:
case gdb_sys_lchown16:
case gdb_sys_mkdir:
case gdb_sys_rmdir:
case gdb_sys_dup:
+ break;
+
case gdb_sys_pipe:
+ regcache_raw_read_unsigned (regcache, tdep->arg1, &tmpulongest);
+ if (record_full_arch_list_add_mem ((CORE_ADDR) tmpulongest,
+ tdep->size_int * 2))
break;
case gdb_sys_times:
int size_hayes_esp_config;
int size_size_t;
int size_iovec;
+ int size_time_t;
/* The values of the second argument of system call "sys_ioctl". */
int ioctl_TCGETS;
record_tdep->size_serial_icounter_struct = 80;
record_tdep->size_size_t = 8;
record_tdep->size_iovec = 16;
+ record_tdep->size_time_t = 8;
}
else if (wordsize == 4)
{
record_tdep->size_serial_icounter_struct = 80;
record_tdep->size_size_t = 4;
record_tdep->size_iovec = 8;
+ record_tdep->size_time_t = 4;
}
else
internal_error (__FILE__, __LINE__, _("unexpected wordsize"));