aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2012-02-29 14:56:55 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2012-02-29 14:56:55 +0000
commitffdf6de517ce5a903c28a67a8f6e57ce7714e9c1 (patch)
treebcccfe4300cea165152c967b027770039d8580e3
parent8703a944b0b85cffebf5bb6da36f42150b40f64a (diff)
downloadgdb-ffdf6de517ce5a903c28a67a8f6e57ce7714e9c1.zip
gdb-ffdf6de517ce5a903c28a67a8f6e57ce7714e9c1.tar.gz
gdb-ffdf6de517ce5a903c28a67a8f6e57ce7714e9c1.tar.bz2
gdb/
Fix reverse mode for syscall on AMD CPUs in 32-bit mode. * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ... (i386_linux_intx80_sysenter_syscall_record): ... here. (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD. Use the renamed function name.
-rw-r--r--gdb/ChangeLog8
-rw-r--r--gdb/i386-linux-tdep.c7
2 files changed, 12 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 71c6d19..3c59ad9 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,13 @@
2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
+ Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
+ * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
+ (i386_linux_intx80_sysenter_syscall_record): ... here.
+ (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
+ Use the renamed function name.
+
+2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
+
* arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
* breakpoint.c (until_break_command): Likewise.
* elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
diff --git a/gdb/i386-linux-tdep.c b/gdb/i386-linux-tdep.c
index 61800b4..13857e5 100644
--- a/gdb/i386-linux-tdep.c
+++ b/gdb/i386-linux-tdep.c
@@ -418,7 +418,7 @@ i386_canonicalize_syscall (int syscall)
static struct linux_record_tdep i386_linux_record_tdep;
static int
-i386_linux_intx80_sysenter_record (struct regcache *regcache)
+i386_linux_intx80_sysenter_syscall_record (struct regcache *regcache)
{
int ret;
LONGEST syscall_native;
@@ -856,8 +856,9 @@ i386_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
i386_linux_record_tdep.arg5 = I386_EDI_REGNUM;
i386_linux_record_tdep.arg6 = I386_EBP_REGNUM;
- tdep->i386_intx80_record = i386_linux_intx80_sysenter_record;
- tdep->i386_sysenter_record = i386_linux_intx80_sysenter_record;
+ tdep->i386_intx80_record = i386_linux_intx80_sysenter_syscall_record;
+ tdep->i386_sysenter_record = i386_linux_intx80_sysenter_syscall_record;
+ tdep->i386_syscall_record = i386_linux_intx80_sysenter_syscall_record;
/* N_FUN symbols in shared libaries have 0 for their values and need
to be relocated. */