From aefb52a69351517dbcfaafca1d21e5431d4119d1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marcin=20Ko=C5=9Bcielnicki?= Date: Fri, 30 Oct 2015 15:51:56 +0000 Subject: [PATCH] gdb/linux-record: Remove size_siginfo It's a duplicate of size_siginfo_t. gdb/ChangeLog: * aarch64-linux-tdep.c (aarch64_linux_init_abi): Remove size_siginfo. * amd64-linux-tdep.c (amd64_linux_init_abi): Remove size_siginfo. (amd64_x32_linux_init_abi): Remove size_siginfo. * arm-linux-tdep.c (arm_linux_init_abi): Remove size_siginfo. * i386-linux-tdep.c (i386_linux_init_abi): Remove size_siginfo. * linux-record.c (record_linux_system_call): Change size_siginfo to size_siginfo_t. * linux-record.h (struct linux_record_tdep): Remove size_siginfo. * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Remove size_siginfo. --- gdb/ChangeLog | 12 ++++++++++++ gdb/aarch64-linux-tdep.c | 1 - gdb/amd64-linux-tdep.c | 2 -- gdb/arm-linux-tdep.c | 1 - gdb/i386-linux-tdep.c | 1 - gdb/linux-record.c | 2 +- gdb/linux-record.h | 1 - gdb/ppc-linux-tdep.c | 2 -- 8 files changed, 13 insertions(+), 9 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 43ad928eb1c..3c2eafa8e17 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,15 @@ +2015-10-30 Marcin Kościelnicki + + * aarch64-linux-tdep.c (aarch64_linux_init_abi): Remove size_siginfo. + * amd64-linux-tdep.c (amd64_linux_init_abi): Remove size_siginfo. + (amd64_x32_linux_init_abi): Remove size_siginfo. + * arm-linux-tdep.c (arm_linux_init_abi): Remove size_siginfo. + * i386-linux-tdep.c (i386_linux_init_abi): Remove size_siginfo. + * linux-record.c (record_linux_system_call): Change size_siginfo + to size_siginfo_t. + * linux-record.h (struct linux_record_tdep): Remove size_siginfo. + * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Remove size_siginfo. + 2015-10-29 Pedro Alves * mdebugread.c (add_data_symbol): New function, factored out from diff --git a/gdb/aarch64-linux-tdep.c b/gdb/aarch64-linux-tdep.c index 2204c926df1..4169200f00e 100644 --- a/gdb/aarch64-linux-tdep.c +++ b/gdb/aarch64-linux-tdep.c @@ -1054,7 +1054,6 @@ aarch64_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) aarch64_linux_record_tdep.size_epoll_event = 12; aarch64_linux_record_tdep.size_itimerspec = 32; aarch64_linux_record_tdep.size_mq_attr = 64; - aarch64_linux_record_tdep.size_siginfo = 128; aarch64_linux_record_tdep.size_termios = 60; aarch64_linux_record_tdep.size_termios2 = 44; aarch64_linux_record_tdep.size_pid_t = 4; diff --git a/gdb/amd64-linux-tdep.c b/gdb/amd64-linux-tdep.c index 021dca6fdf3..59c318d65c5 100644 --- a/gdb/amd64-linux-tdep.c +++ b/gdb/amd64-linux-tdep.c @@ -1950,7 +1950,6 @@ amd64_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) amd64_linux_record_tdep.size_epoll_event = 12; amd64_linux_record_tdep.size_itimerspec = 32; amd64_linux_record_tdep.size_mq_attr = 64; - amd64_linux_record_tdep.size_siginfo = 128; amd64_linux_record_tdep.size_termios = 60; amd64_linux_record_tdep.size_termios2 = 44; amd64_linux_record_tdep.size_pid_t = 4; @@ -2167,7 +2166,6 @@ amd64_x32_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) amd64_x32_linux_record_tdep.size_epoll_event = 12; amd64_x32_linux_record_tdep.size_itimerspec = 32; amd64_x32_linux_record_tdep.size_mq_attr = 64; - amd64_x32_linux_record_tdep.size_siginfo = 128; amd64_x32_linux_record_tdep.size_termios = 60; amd64_x32_linux_record_tdep.size_termios2 = 44; amd64_x32_linux_record_tdep.size_pid_t = 4; diff --git a/gdb/arm-linux-tdep.c b/gdb/arm-linux-tdep.c index dc0a8a9dbc4..4a100c81f35 100644 --- a/gdb/arm-linux-tdep.c +++ b/gdb/arm-linux-tdep.c @@ -1542,7 +1542,6 @@ arm_linux_init_abi (struct gdbarch_info info, arm_linux_record_tdep.size_itimerspec = arm_linux_record_tdep.size_timespec * 2; arm_linux_record_tdep.size_mq_attr = 32; - arm_linux_record_tdep.size_siginfo = 128; arm_linux_record_tdep.size_termios = 36; arm_linux_record_tdep.size_termios2 = 44; arm_linux_record_tdep.size_pid_t = 4; diff --git a/gdb/i386-linux-tdep.c b/gdb/i386-linux-tdep.c index d02c527f35b..8dce146b0a3 100644 --- a/gdb/i386-linux-tdep.c +++ b/gdb/i386-linux-tdep.c @@ -861,7 +861,6 @@ i386_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) i386_linux_record_tdep.size_itimerspec = i386_linux_record_tdep.size_timespec * 2; i386_linux_record_tdep.size_mq_attr = 32; - i386_linux_record_tdep.size_siginfo = 128; i386_linux_record_tdep.size_termios = 36; i386_linux_record_tdep.size_termios2 = 44; i386_linux_record_tdep.size_pid_t = 4; diff --git a/gdb/linux-record.c b/gdb/linux-record.c index 58733655169..d1e02f4e6e3 100644 --- a/gdb/linux-record.c +++ b/gdb/linux-record.c @@ -2092,7 +2092,7 @@ Do you want to stop the program?"), case gdb_sys_waitid: regcache_raw_read_unsigned (regcache, tdep->arg3, &tmpulongest); if (record_full_arch_list_add_mem ((CORE_ADDR) tmpulongest, - tdep->size_siginfo)) + tdep->size_siginfo_t)) return -1; regcache_raw_read_unsigned (regcache, tdep->arg5, &tmpulongest); if (record_full_arch_list_add_mem ((CORE_ADDR) tmpulongest, diff --git a/gdb/linux-record.h b/gdb/linux-record.h index 6d29985c5d3..839bd3122fa 100644 --- a/gdb/linux-record.h +++ b/gdb/linux-record.h @@ -81,7 +81,6 @@ struct linux_record_tdep int size_epoll_event; int size_itimerspec; int size_mq_attr; - int size_siginfo; int size_termios; int size_termios2; int size_pid_t; diff --git a/gdb/ppc-linux-tdep.c b/gdb/ppc-linux-tdep.c index 460c503fae1..79d115eb903 100644 --- a/gdb/ppc-linux-tdep.c +++ b/gdb/ppc-linux-tdep.c @@ -1473,7 +1473,6 @@ ppc_init_linux_record_tdep (struct linux_record_tdep *record_tdep, record_tdep->size_epoll_event = 16; record_tdep->size_itimerspec = 32; record_tdep->size_mq_attr = 64; - record_tdep->size_siginfo = 128; record_tdep->size_termios = 44; record_tdep->size_pid_t = 4; record_tdep->size_winsize = 8; @@ -1541,7 +1540,6 @@ ppc_init_linux_record_tdep (struct linux_record_tdep *record_tdep, record_tdep->size_epoll_event = 16; record_tdep->size_itimerspec = 16; record_tdep->size_mq_attr = 32; - record_tdep->size_siginfo = 128; record_tdep->size_termios = 44; record_tdep->size_pid_t = 4; record_tdep->size_winsize = 8; -- 2.30.2