@@ -61,2 +61,3 @@ with_test_prefix "before inferior start" {
gdb_test "watch ival3" ".*" ""
+ gdb_test "watch *(char \[256\] *) main"
-- >8 --
To fix the hang, this patch clears the step-over info when
insert_breakpoints has failed. Of course, with native-gdbserver the
watchpoints.exp test case still causes many FAILs on s390, because
gdbserver does not support watchpoints for that target. This is a
separate issue.
gdb/ChangeLog:
* infrun.c (keep_going_pass_signal): Clear step-over info when
insert_breakpoints fails.
---
gdb/infrun.c | 1 +
1 file changed, 1 insertion(+)
@@ -7751,6 +7751,7 @@ keep_going_pass_signal (struct execution_control_state *ecs)
{
exception_print (gdb_stderr, e);
stop_waiting (ecs);
+ clear_step_over_info ();
return;
}
END_CATCH