This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[obv] testsuite: disp-step-syscall.exp: Setup KFAIL for PR server/13796
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Sat, 3 Mar 2012 08:01:05 +0100
- Subject: [obv] testsuite: disp-step-syscall.exp: Setup KFAIL for PR server/13796
Hi,
[patch] Fix disp-step-syscall.exp on some i386 targets
http://sourceware.org/ml/gdb-patches/2012-02/msg00635.html
just fixed a testcase which revealed existing IMO gdbserver Bug, therefore
just KFAILed it.
stepi
Program terminated with signal SIGILL, Illegal instruction.
The program no longer exists.
(gdb) PASS: gdb.base/disp-step-syscall.exp: vfork: single step over vfork
Child terminated with signal = 0x4 (SIGILL)
GDBserver exiting
print /x $pc
No registers.
(gdb) FAIL: gdb.base/disp-step-syscall.exp: vfork: get hexadecimal valueof "$pc" (timeout)
->
http://sourceware.org/bugzilla/show_bug.cgi?id=13796
Regards,
Jan
http://sourceware.org/ml/gdb-cvs/2012-03/msg00073.html
--- src/gdb/testsuite/ChangeLog 2012/03/02 20:36:39 1.3115
+++ src/gdb/testsuite/ChangeLog 2012/03/03 06:58:16 1.3116
@@ -1,3 +1,8 @@
+2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Setup KFAIL for PR server/13796.
+ * gdb.base/disp-step-syscall.exp (single step over vfork): Setup KFAIL.
+
2012-03-02 Joel Brobecker <brobecker@adacore.com>
* gdb.ada/operator_bp: New testcase.
--- src/gdb/testsuite/gdb.base/disp-step-syscall.exp 2012/02/29 14:59:41 1.6
+++ src/gdb/testsuite/gdb.base/disp-step-syscall.exp 2012/03/03 06:58:16 1.7
@@ -118,7 +118,20 @@
gdb_test_no_output "set displaced-stepping on"
# Check the address of next instruction of syscall.
- gdb_test "stepi" ".*" "single step over $syscall"
+ if {$syscall == "vfork" && [is_remote target]} {
+ setup_kfail server/13796 "*-*-*"
+ }
+ set test "single step over $syscall"
+ gdb_test_multiple "stepi" $test {
+ -re "Program terminated with signal SIGILL,.*\r\n$gdb_prompt $" {
+ fail $test
+ return
+ }
+ -re "\r\n$gdb_prompt $" {
+ pass $test
+ }
+ }
+
set syscall_insn_next_addr_found [get_hexadecimal_valueof "\$pc" "0"]
set test "single step over $syscall final pc"