Port to GDB-6.7.
-Index: gdb-6.7/gdb/testsuite/gdb.base/setshow.exp
+Index: gdb-7.1.90.20100711/gdb/testsuite/gdb.base/setshow.exp
===================================================================
---- gdb-6.7.orig/gdb/testsuite/gdb.base/setshow.exp 2007-08-23 20:14:17.000000000 +0200
-+++ gdb-6.7/gdb/testsuite/gdb.base/setshow.exp 2007-10-15 21:34:52.000000000 +0200
-@@ -106,6 +106,16 @@ if { ![target_info exists use_gdb_stub]
+--- gdb-7.1.90.20100711.orig/gdb/testsuite/gdb.base/setshow.exp 2010-06-11 22:56:06.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/testsuite/gdb.base/setshow.exp 2010-07-12 10:46:06.000000000 +0200
+@@ -96,6 +96,16 @@ if { ![target_info exists use_gdb_stub]
delete_breakpoints
gdb_test "run" "Starting program:.*foo bar blup baz bubble.*" "passing args"
}
+#test show backtrace past-zero-pc
+gdb_test "show backtrace past-zero-pc" "Whether backtraces should continue past a zero pc value is off." "show backtrace past-zero-pc (off)"
#test set check range on
- gdb_test "set check range on" "" "set check range on"
+ gdb_test "set check range on" ".*" "set check range on"
#test show check range on
-Index: gdb-6.7/gdb/frame.c
+Index: gdb-7.1.90.20100711/gdb/frame.c
===================================================================
---- gdb-6.7.orig/gdb/frame.c 2007-10-12 22:35:58.000000000 +0200
-+++ gdb-6.7/gdb/frame.c 2007-10-15 21:34:52.000000000 +0200
-@@ -133,6 +133,16 @@ Whether backtraces should continue past
+--- gdb-7.1.90.20100711.orig/gdb/frame.c 2010-07-12 10:00:56.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/frame.c 2010-07-12 10:45:18.000000000 +0200
+@@ -185,6 +185,16 @@ Whether backtraces should continue past
value);
}
static int backtrace_past_entry;
static void
show_backtrace_past_entry (struct ui_file *file, int from_tty,
-@@ -1483,9 +1493,7 @@ get_prev_frame (struct frame_info *this_
+@@ -1784,9 +1794,7 @@ get_prev_frame (struct frame_info *this_
}
if (this_frame->level > 0
&& get_frame_type (this_frame) == NORMAL_FRAME
&& get_frame_type (get_next_frame (this_frame)) == NORMAL_FRAME
&& get_frame_pc (this_frame) == 0)
-@@ -1850,6 +1858,17 @@ the rest of the stack trace."),
+@@ -2271,6 +2279,17 @@ the rest of the stack trace."),
&set_backtrace_cmdlist,
&show_backtrace_cmdlist);