Index: i386-linux-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/i386-linux-tdep.c,v retrieving revision 1.66 diff -u -p -r1.66 i386-linux-tdep.c --- i386-linux-tdep.c 10 Aug 2009 03:04:44 -0000 1.66 +++ i386-linux-tdep.c 6 Sep 2009 02:12:15 -0000 @@ -367,18 +367,19 @@ static int i386_linux_intx80_sysenter_record (struct regcache *regcache) { int ret; - uint32_t tmpu32; + LONGEST syscall; - regcache_raw_read (regcache, I386_EAX_REGNUM, (gdb_byte *) &tmpu32); + regcache_raw_read_signed (regcache, I386_EAX_REGNUM, &syscall); - if (tmpu32 > 499) + if (syscall < 0 || syscall > 499) { printf_unfiltered (_("Process record and replay target doesn't " - "support syscall number %u\n"), tmpu32); + "support syscall number %s\n"), + plongest (syscall)); return -1; } - ret = record_linux_system_call (tmpu32, regcache, + ret = record_linux_system_call (syscall, regcache, &i386_linux_record_tdep); if (ret) return ret;