diff options
author | Marcin KoĆcielnicki <koriakin@0x04.net> | 2015-10-30 15:51:56 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2015-10-30 15:51:56 +0000 |
commit | d625f9a988e2b7d4a3c43e477af1d94a6ec8bda7 (patch) | |
tree | f1041463403853d0b460d4a0187e06bafaa0592a /gdb/arm-linux-tdep.c | |
parent | aefb52a69351517dbcfaafca1d21e5431d4119d1 (diff) | |
download | gdb-d625f9a988e2b7d4a3c43e477af1d94a6ec8bda7.zip gdb-d625f9a988e2b7d4a3c43e477af1d94a6ec8bda7.tar.gz gdb-d625f9a988e2b7d4a3c43e477af1d94a6ec8bda7.tar.bz2 |
gdb/linux-record: Fix size_[ug]id values
i386 and arm wrongly set them to 2, when it should be 4. size_[ug]id is used
by getgroups32 etc syscalls, while size_old_[ug]id is used for getgroups16
and friends.
gdb/ChangeLog:
* arm-linux-tdep.c (arm_linux_init_abi): Fix size_[ug]id.
* i386-linux-tdep.c (i386_linux_init_abi): Fix size_[ug]id.
Diffstat (limited to 'gdb/arm-linux-tdep.c')
-rw-r--r-- | gdb/arm-linux-tdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/arm-linux-tdep.c b/gdb/arm-linux-tdep.c index 4a100c8..940f01f 100644 --- a/gdb/arm-linux-tdep.c +++ b/gdb/arm-linux-tdep.c @@ -1531,8 +1531,8 @@ arm_linux_init_abi (struct gdbarch_info info, arm_linux_record_tdep.size_stack_t = 12; arm_linux_record_tdep.size_off_t = arm_linux_record_tdep.size_long; arm_linux_record_tdep.size_stat64 = 96; - arm_linux_record_tdep.size_gid_t = 2; - arm_linux_record_tdep.size_uid_t = 2; + arm_linux_record_tdep.size_gid_t = 4; + arm_linux_record_tdep.size_uid_t = 4; arm_linux_record_tdep.size_PAGE_SIZE = 4096; arm_linux_record_tdep.size_flock64 = 24; arm_linux_record_tdep.size_user_desc = 16; |