diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2008-12-21 15:01:32 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2008-12-21 15:01:32 +0000 |
commit | db2ad4c3f7d0c035ad9e38e312d0cf24a906f701 (patch) | |
tree | a3804fa9899e7b0d9a4206f9bcd759d135401d5e /gdb/testsuite/gdb.base/watchpoint-hw.c | |
parent | 22e8c8e0c1d95681c1e4b869b1c84a872d5d5077 (diff) | |
download | gdb-db2ad4c3f7d0c035ad9e38e312d0cf24a906f701.zip gdb-db2ad4c3f7d0c035ad9e38e312d0cf24a906f701.tar.gz gdb-db2ad4c3f7d0c035ad9e38e312d0cf24a906f701.tar.bz2 |
gdb/
Fix hw watchpoints created before the inferior was started.
* breakpoint.c (update_watchpoint): Convert the bp_watchpoint and
bp_hardware_watchpoint types according to the current runtime state.
gdb/testsuite/
* gdb.base/watchpoint-hw.exp, gdb.base/watchpoint-hw.c: New.
Diffstat (limited to 'gdb/testsuite/gdb.base/watchpoint-hw.c')
-rw-r--r-- | gdb/testsuite/gdb.base/watchpoint-hw.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/watchpoint-hw.c b/gdb/testsuite/gdb.base/watchpoint-hw.c new file mode 100644 index 0000000..f6eea6f --- /dev/null +++ b/gdb/testsuite/gdb.base/watchpoint-hw.c @@ -0,0 +1,27 @@ +/* This testcase is part of GDB, the GNU debugger. + + Copyright 2008 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + + Please email any bugs, comments, and/or additions to this file to: + bug-gdb@prep.ai.mit.edu */ + +int watchee; + +int +main (void) +{ + return 0; +} |