OSDN Git Service

2011-05-24 Pedro Alves <pedro@codesourcery.com>
authorpalves <palves>
Tue, 24 May 2011 15:03:29 +0000 (15:03 +0000)
committerpalves <palves>
Tue, 24 May 2011 15:03:29 +0000 (15:03 +0000)
commit0cfb6f86a07fa8490f455233a89eea85cab20002
treeb7b8e2d188ba0eec35c20387527440597bb57214
parent331d6eb7aa27dfd2e2b3a263714ea5473cded009
2011-05-24  Pedro Alves  <pedro@codesourcery.com>

gdb/
* breakpoint.c (watchpoint_check): If the watchpoint went out of
scope, clear its command list.
(map_breakpoint_numbers): Don't walk the related breakpoints list
of each breakpoint.

gdb/testsuite/
* gdb.base/commands.exp (watchpoint_command_test): Check that the
watchpoint's command list didn't execute when the watchpoint went
out of scope.
gdb/ChangeLog
gdb/breakpoint.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/commands.exp