gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Wed, 29 Feb 2012 14:59:41 +0000 (14:59 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Wed, 29 Feb 2012 14:59:41 +0000 (14:59 +0000)
commit9a7f938f9358df20af9630b5e3be9f8a049c27d8
treee80c59231e95ef404a7e88a82dbe8f8b69ef10e4
parentffdf6de517ce5a903c28a67a8f6e57ce7714e9c1
gdb/
Fix disp-step-syscall.exp: fork: single step over fork.
* i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
(i386_linux_get_syscall_number_from_regcache): ... here, new function
comment, change parameters gdbarch and ptid to regcache.  Remove
parameter regcache, initialize gdbarch from regcache here.
(i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
New functions.
(i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
instead.
* i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
'syscall'.  Make the 'int' check more strict.

gdb/testsuite/
Fix disp-step-syscall.exp: fork: single step over fork.
* gdb.base/disp-step-syscall.exp (syscall_insn): Anchor it by
whitespaces.
(single step over $syscall): Remove its check.
(single step over $syscall final pc): New check.
gdb/ChangeLog
gdb/i386-linux-tdep.c
gdb/i386-tdep.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/disp-step-syscall.exp