[PATCH v2 02/13] gdb/linux-record: Remove size_siginfo

Marcin Kościelnicki
2015-10-22T13:39:42Z

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 1d3f683..128ee16 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,15 @@
+2015-10-22 Marcin KoÅ›cielnicki <koriakin@0x04.net>
+
+ * 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-21 Simon Marchi <simon.marchi@polymtl.ca>

PR python/18073
diff --git a/gdb/aarch64-linux-tdep.c b/gdb/aarch64-linux-tdep.c
index 2204c92..4169200 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 021dca6..59c318d 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 dc0a8a9..4a100c8 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 d02c527..8dce146 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 5873365..d1e02f4 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 6d29985..839bd31 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 460c503..79d115e 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.6.1