diff options
author | Hui Zhu <teawater@gmail.com> | 2013-04-10 04:35:21 +0000 |
---|---|---|
committer | Hui Zhu <teawater@gmail.com> | 2013-04-10 04:35:21 +0000 |
commit | 5c2b44181d798da7ed201d94ead3789da53b0b1a (patch) | |
tree | adc313a89bdbe9179cfe4a64afff14cb158b2674 /gdb/testsuite/gdb.base/dprintf-pending.c | |
parent | a5c667350332aa580ad847b4da835f1c5f68f682 (diff) | |
download | binutils-5c2b44181d798da7ed201d94ead3789da53b0b1a.zip binutils-5c2b44181d798da7ed201d94ead3789da53b0b1a.tar.gz binutils-5c2b44181d798da7ed201d94ead3789da53b0b1a.tar.bz2 |
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 0000000..954bdf2 --- /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; +} |