diff options
author | Pedro Alves <palves@redhat.com> | 2014-06-03 12:46:46 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2014-06-03 12:46:46 +0100 |
commit | 835c559fd59d4ebb3b04d046c1f9f36183db0fe6 (patch) | |
tree | b22b8651cf7e6f0f089a014620ca9e8f87d0f88f /gdb/testsuite/gdb.base/sss-bp-on-user-bp-2.c | |
parent | 06eb158633faa8746dd39f19ce784448bb7ece00 (diff) | |
download | gdb-835c559fd59d4ebb3b04d046c1f9f36183db0fe6.zip gdb-835c559fd59d4ebb3b04d046c1f9f36183db0fe6.tar.gz gdb-835c559fd59d4ebb3b04d046c1f9f36183db0fe6.tar.bz2 |
PR breakpoints/17000: user breakpoint not inserted if software-single-step at same location - test
GDB gets confused when removing a software single-step breakpoint that
is at the same address as another breakpoint. Add another kfailed
test.
gdb/testsuite/
2014-06-03 Pedro Alves <palves@redhat.com>
PR breakpoints/17000
* gdb.base/sss-bp-on-user-bp-2.c: New file.
* gdb.base/sss-bp-on-user-bp-2.exp: New file.
Diffstat (limited to 'gdb/testsuite/gdb.base/sss-bp-on-user-bp-2.c')
-rw-r--r-- | gdb/testsuite/gdb.base/sss-bp-on-user-bp-2.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/sss-bp-on-user-bp-2.c b/gdb/testsuite/gdb.base/sss-bp-on-user-bp-2.c new file mode 100644 index 0000000..c3c26fe --- /dev/null +++ b/gdb/testsuite/gdb.base/sss-bp-on-user-bp-2.c @@ -0,0 +1,29 @@ +/* This testcase is part of GDB, the GNU debugger. + + Copyright 2014 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/>. */ + +static void +test (void) +{ + label: asm (" nop"); label2: asm (" nop"); /* must be a single line */ +} + +int +main (void) +{ + test (); + return 0; +} |