From: Marcin Kościelnicki Date: Fri, 30 Oct 2015 15:52:02 +0000 (+0000) Subject: gdb/linux-record: Fix size_termios for x32, amd64, aarch64 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d9b19c4992e7384f12441bc13c0e22d4054b0487;p=binutils-gdb.git gdb/linux-record: Fix size_termios for x32, amd64, aarch64 60 bytes is the size of glibc's struct termios, the one used by kernel is 36 bytes long. gdb/ChangeLog: * aarch64-linux-tdep.c (aarch64_linux_init_abi): Fix size_termios. * amd64-linux-tdep.c (amd64_linux_init_abi): Fix size_termios. (amd64_x32_linux_init_abi): Fix size_termios. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c19d8bd814f..1149f497159 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2015-10-30 Marcin Kościelnicki + + * aarch64-linux-tdep.c (aarch64_linux_init_abi): Fix size_termios. + * amd64-linux-tdep.c (amd64_linux_init_abi): Fix size_termios. + (amd64_x32_linux_init_abi): Fix size_termios. + 2015-10-30 Marcin Kościelnicki * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Fix TASK_COMM_LEN. diff --git a/gdb/aarch64-linux-tdep.c b/gdb/aarch64-linux-tdep.c index a1dcd5b19db..aa3519685ef 100644 --- a/gdb/aarch64-linux-tdep.c +++ b/gdb/aarch64-linux-tdep.c @@ -1053,7 +1053,7 @@ 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_termios = 60; + aarch64_linux_record_tdep.size_termios = 36; aarch64_linux_record_tdep.size_termios2 = 44; aarch64_linux_record_tdep.size_pid_t = 4; aarch64_linux_record_tdep.size_winsize = 8; diff --git a/gdb/amd64-linux-tdep.c b/gdb/amd64-linux-tdep.c index 829d9b70111..b0950f28067 100644 --- a/gdb/amd64-linux-tdep.c +++ b/gdb/amd64-linux-tdep.c @@ -1950,7 +1950,7 @@ 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_termios = 60; + amd64_linux_record_tdep.size_termios = 36; amd64_linux_record_tdep.size_termios2 = 44; amd64_linux_record_tdep.size_pid_t = 4; amd64_linux_record_tdep.size_winsize = 8; @@ -2167,7 +2167,7 @@ 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_termios = 60; + amd64_x32_linux_record_tdep.size_termios = 36; amd64_x32_linux_record_tdep.size_termios2 = 44; amd64_x32_linux_record_tdep.size_pid_t = 4; amd64_x32_linux_record_tdep.size_winsize = 8;