+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.
 
 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;
   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.  */