diff options
author | Hui Zhu <teawater@gmail.com> | 2013-04-10 04:35:20 +0000 |
---|---|---|
committer | Hui Zhu <teawater@gmail.com> | 2013-04-10 04:35:20 +0000 |
commit | dfbdc311bb0eccdb6b666ce5a39b917041afe14b (patch) | |
tree | 6c6de8e5c6e54295eb8fbfe1f19f6fe0763429f6 /gdb/testsuite/gdb.base/dprintf-pending.c | |
parent | 375d6fc170031d5e766a099007c8f05d27ed5ae2 (diff) | |
download | gdb-dfbdc311bb0eccdb6b666ce5a39b917041afe14b.tar.gz |
2013-04-10 Pedro Alves <palves@redhat.com>
Hui Zhu <hui@codesourcery.com>
* breakpoint.c (dprintf_re_set): New.
(initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
to dprintf_re_set.
2013-04-10 Hui Zhu <hui@codesourcery.com>
* gdb.base/Makefile.in (EXECUTABLES): Add dprintf-pending.
(MISCELLANEOUS): Add dprintf-pendshr.sl.
* gdb.base/dprintf-pending.c, gdb.base/dprintf-pending.exp: New.
Diffstat (limited to 'gdb/testsuite/gdb.base/dprintf-pending.c')
-rw-r--r-- | gdb/testsuite/gdb.base/dprintf-pending.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/dprintf-pending.c b/gdb/testsuite/gdb.base/dprintf-pending.c new file mode 100644 index 00000000000..954bdf2bf23 --- /dev/null +++ b/gdb/testsuite/gdb.base/dprintf-pending.c @@ -0,0 +1,29 @@ +/* This testcase is part of GDB, the GNU debugger. + + Copyright 2013 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/>. */ + +int k = 0; + +extern void pendfunc (int x); + +int main() +{ + pendfunc (3); /* break main here */ + pendfunc (4); + k = 1; + pendfunc (3); + return 0; +} |