1 |
227 |
jeremybenn |
/* This testcase is part of GDB, the GNU debugger.
|
2 |
|
|
|
3 |
|
|
Copyright 1992, 1993, 1994, 1995, 1999, 2002, 2003, 2007, 2008, 2010
|
4 |
|
|
Free Software Foundation, Inc.
|
5 |
|
|
|
6 |
|
|
This program is free software; you can redistribute it and/or modify
|
7 |
|
|
it under the terms of the GNU General Public License as published by
|
8 |
|
|
the Free Software Foundation; either version 3 of the License, or
|
9 |
|
|
(at your option) any later version.
|
10 |
|
|
|
11 |
|
|
This program is distributed in the hope that it will be useful,
|
12 |
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 |
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14 |
|
|
GNU General Public License for more details.
|
15 |
|
|
|
16 |
|
|
You should have received a copy of the GNU General Public License
|
17 |
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
18 |
|
|
|
19 |
|
|
/* The code for this file was extracted from the gdb testsuite
|
20 |
|
|
testcase "break.c". */
|
21 |
|
|
|
22 |
|
|
/* The following functions do nothing useful. They are included
|
23 |
|
|
simply as places to try setting breakpoints at. They are
|
24 |
|
|
explicitly "one-line functions" to verify that this case works
|
25 |
|
|
(some versions of gcc have or have had problems with this).
|
26 |
|
|
|
27 |
|
|
These functions are in a separate source file to prevent an
|
28 |
|
|
optimizing compiler from inlining them and optimizing them away. */
|
29 |
|
|
|
30 |
|
|
#ifdef PROTOTYPES
|
31 |
|
|
int marker1 (void) { return (0); } /* set breakpoint 15 here */
|
32 |
|
|
int marker2 (int a) { return (1); } /* set breakpoint 8 here */
|
33 |
|
|
void marker3 (char *a, char *b) {} /* set breakpoint 17 here */
|
34 |
|
|
void marker4 (long d) {} /* set breakpoint 14 here */
|
35 |
|
|
#else
|
36 |
|
|
int marker1 () { return (0); } /* set breakpoint 16 here */
|
37 |
|
|
int marker2 (a) int a; { return (1); } /* set breakpoint 9 here */
|
38 |
|
|
void marker3 (a, b) char *a, *b; {} /* set breakpoint 18 here */
|
39 |
|
|
void marker4 (d) long d; {} /* set breakpoint 13 here */
|
40 |
|
|
#endif
|
41 |
|
|
|
42 |
|
|
/* A structure we use for field name completion tests. */
|
43 |
|
|
struct some_struct
|
44 |
|
|
{
|
45 |
|
|
int a_field;
|
46 |
|
|
int b_field;
|
47 |
|
|
};
|
48 |
|
|
|
49 |
|
|
struct some_struct values[50];
|