1 /* This testcase is part of GDB, the GNU debugger. 2 3 Copyright 1992, 1993, 1994, 1995, 1999, 2002, 2003 Free Software 4 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 2 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, write to the Free Software 18 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 19 20 Please email any bugs, comments, and/or additions to this file to: 21 bug-gdb@prep.ai.mit.edu */ 22 23 /* The code for this file was extracted from the gdb testsuite 24 testcase "break.c". */ 25 26 /* The following functions do nothing useful. They are included 27 simply as places to try setting breakpoints at. They are 28 explicitly "one-line functions" to verify that this case works 29 (some versions of gcc have or have had problems with this). 30 31 These functions are in a separate source file to prevent an 32 optimizing compiler from inlining them and optimizing them away. */ 33 34 #ifdef PROTOTYPES 35 int marker1 (void) { return (0); } /* set breakpoint 15 here */ 36 int marker2 (int a) { return (1); } /* set breakpoint 8 here */ 37 void marker3 (char *a, char *b) {} /* set breakpoint 17 here */ 38 void marker4 (long d) {} /* set breakpoint 14 here */ 39 #else 40 int marker1 () { return (0); } /* set breakpoint 16 here */ 41 int marker2 (a) int a; { return (1); } /* set breakpoint 9 here */ 42 void marker3 (a, b) char *a, *b; {} /* set breakpoint 18 here */ 43 void marker4 (d) long d; {} /* set breakpoint 13 here */ 44 #endif 45