Yao Qi
4081c0f122
Simplify gdb.threads/wp-replication.exp on counting HW watchpoints
...
Nowadays, test gdb.threads/wp-replication.exp uses a while loop to
repeatedly insert HW watchpoint, resume and check no error message
coming out, in order to count HW watchpoints There are some
drawbacks in this way,
- the loop could be endless. I think this is use to making trouble
to S/390, since we had such comment
# Some targets (like S/390) behave as though supporting
# unlimited hardware watchpoints. In this case we just take a
# safe exit out of the loop.
I hit this today too because a GDB internal error is triggered
on "continue" in the loop, and $done is 0 invariantly, so the loop
can't end.
- the code counting hardware watchpoint is too complicated. We can
use "set breakpoint always-inserted on" to get the result of inserting
HW watchpoint without resuming the inferior. In this way,
watch_count_done and empty_cycle in c file is no longer needed.
In this patch, I change to use "set breakpoint always-inserted on" trick,
and only iterate $NR_THREADS times, to count the HW watchpoint. In this
way, the loop can't be endless, and GDB doesn't need to resume the inferior.
gdb/testsuite:
2015-10-30 Yao Qi <yao.qi@linaro.org>
* gdb.threads/wp-replication.c (watch_count_done): Remove.
(empty_cycle): Remove.
(main): Don't call empty_cycle. Don't use watch_count_done.
* gdb.threads/wp-replication.exp: Don't set breakpoint on
empty_cycle. Rewrite the code counting HW watchpoints.
2015-10-30 15:54:58 +00:00
..
2015-01-01 13:32:14 +04:00
2015-07-31 20:06:24 +01:00
2015-02-06 13:24:32 +01:00
2015-07-31 20:06:24 +01:00
2015-01-01 13:32:14 +04:00
2015-07-31 20:06:24 +01:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-03-04 09:13:49 +00:00
2015-02-20 19:00:21 +00:00
2015-01-23 11:12:39 +00:00
2015-01-23 11:12:39 +00:00
2015-03-19 12:26:49 +00:00
2015-03-19 12:38:05 +00:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-25 18:50:56 +01:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-07-30 18:50:29 +01:00
2015-07-30 18:52:53 +01:00
2015-01-01 13:32:14 +04:00
2015-01-09 11:42:57 +00:00
2015-08-06 12:45:45 +01:00
2015-08-06 12:45:45 +01:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-09-08 19:49:04 -07:00
2015-06-29 16:07:57 +01:00
2015-06-29 16:07:57 +01:00
2015-01-09 13:58:29 +00:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-25 18:50:56 +01:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-25 18:50:56 +01:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-04-01 15:30:13 +01:00
2015-02-21 12:03:23 +00:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-04-08 19:59:03 +01:00
2015-04-10 10:36:23 +01:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-08-05 20:01:42 +01:00
2015-08-05 20:01:42 +01:00
2015-01-01 13:32:14 +04:00
2015-04-02 13:51:31 +01:00
2015-01-25 18:50:56 +01:00
2015-09-11 11:12:46 -07:00
2015-01-25 18:50:56 +01:00
2015-09-11 11:12:46 -07:00
2015-01-25 18:50:56 +01:00
2015-09-15 17:01:59 +01:00
2015-01-25 18:50:56 +01:00
2015-09-11 11:12:46 -07:00
2015-07-24 17:49:17 +01:00
2015-07-24 17:49:17 +01:00
2015-09-16 15:51:36 +01:00
2015-09-16 15:51:36 +01:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-08-06 12:33:20 +01:00
2015-08-06 12:33:20 +01:00
2015-01-25 18:50:56 +01:00
2015-01-01 13:32:14 +04:00
2015-01-25 18:50:56 +01:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-03-24 17:50:31 +00:00
2015-01-09 13:58:29 +00:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-09 11:42:57 +00:00
2015-01-09 11:42:57 +00:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-02-10 19:30:55 +00:00
2015-02-10 19:30:55 +00:00
2015-01-01 13:32:14 +04:00
2015-08-07 17:26:20 +01:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-02-11 09:45:41 +00:00
2015-02-11 09:45:41 +00:00
2015-08-07 17:26:21 +01:00
2015-08-07 17:26:21 +01:00
2015-08-07 17:26:21 +01:00
2015-08-07 17:26:21 +01:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-03-03 01:25:17 +00:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-03-04 17:23:55 +00:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-04-01 13:38:06 +01:00
2015-04-01 13:38:06 +01:00
2015-01-01 13:32:14 +04:00
2015-01-25 18:50:56 +01:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-09-15 21:12:39 +02:00
2015-09-15 21:12:39 +02:00
2015-09-15 21:12:39 +02:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-25 18:50:56 +01:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-09 13:58:29 +00:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-01-01 13:32:14 +04:00
2015-10-30 15:54:58 +00:00
2015-10-30 15:54:58 +00:00