This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[patch] testsuite: singlejmp-reverse.exp compatibility with Doug's GDB (PR 14615)
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Tue, 25 Sep 2012 07:58:21 +0200
- Subject: [patch] testsuite: singlejmp-reverse.exp compatibility with Doug's GDB (PR 14615)
Hello Doug,
http://sourceware.org/bugzilla/show_bug.cgi?id=14615
according to IRC discussions IIUC Doug has disabled this patch:
[rfc, 7.3?] -O2 -g breakpoints internal error + prologue skipping
http://sourceware.org/ml/gdb-patches/2011-04/msg00229.html
http://sourceware.org/ml/gdb-patches/2011-05/msg00190.html
(there was no reply from anyone)
The recent testcase below depends on this behavior but it is unrelated to its
subject of test, therefore the testcase below can be made compatible with any
GDB behavior wrt prologue skipping.
This sure does not solve the Doug's changes for the prologue skipping itself.
Thanks,
Jan
gdb/testsuite/
2012-09-25 Jan Kratochvil <jan.kratochvil@redhat.com>
PR 14615
* gdb.reverse/singlejmp-reverse.exp: Use *main.
diff --git a/gdb/testsuite/gdb.reverse/singlejmp-reverse.exp b/gdb/testsuite/gdb.reverse/singlejmp-reverse.exp
index 830a89f..95d4d9b 100644
--- a/gdb/testsuite/gdb.reverse/singlejmp-reverse.exp
+++ b/gdb/testsuite/gdb.reverse/singlejmp-reverse.exp
@@ -38,7 +38,9 @@ if [info exists COMPILE] {
clean_restart $executable
-if ![runto_main] {
+# '*' is there to ensure prologue is not skipped with some GDB versions.
+# This is just to unify the commands below across various GDB versions.
+if ![runto "*main"] {
return -1
}