]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/breakpoint.c
2011-05-24 Pedro Alves <pedro@codesourcery.com>
authorPedro Alves <palves@redhat.com>
Tue, 24 May 2011 15:03:30 +0000 (15:03 +0000)
committerPedro Alves <palves@redhat.com>
Tue, 24 May 2011 15:03:30 +0000 (15:03 +0000)
commitcdac0397bf4a5390c5fd087edb0bb07ce4b423ef
treeffcb4d4159432533cd5cd54df1d3bd3a5aa43d88
parent91d4fe3f8562ad0295751602f600a345a0631f7c
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