summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/prologue.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2007-07-31 19:58:40 +0000
committerDaniel Jacobowitz <drow@false.org>2007-07-31 19:58:40 +0000
commite48883f7911b90ba2b9af24705be25a0289db16a (patch)
tree7b2af36ecd822f93000c73daf9532025d72a569d /gdb/testsuite/gdb.base/prologue.c
parent6b3d9b8313db583e6b6ba5d897bced21f01d81db (diff)
downloadbinutils-gdb-e48883f7911b90ba2b9af24705be25a0289db16a.tar.gz
* linespec.c (minsym_found): Advance to the next line if possible.
* gdb.base/prologue.c, gdb.base/prologue.exp: New. * lib/gdb.exp (gdb_breakpoint): Handle "temporary".
Diffstat (limited to 'gdb/testsuite/gdb.base/prologue.c')
-rw-r--r--gdb/testsuite/gdb.base/prologue.c39
1 files changed, 39 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/prologue.c b/gdb/testsuite/gdb.base/prologue.c
new file mode 100644
index 00000000000..d8b05e63a27
--- /dev/null
+++ b/gdb/testsuite/gdb.base/prologue.c
@@ -0,0 +1,39 @@
+/* This test is part of GDB, the GNU debugger.
+
+ Copyright 2007 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 2 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, write to the Free Software
+ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+int leaf (void)
+{
+ return 1;
+}
+
+int marker (int val)
+{
+ leaf ();
+ return leaf () * val;
+}
+
+int other (int val) __attribute__((alias("marker")));
+
+int main(void)
+{
+ marker (0);
+ marker (0);
+
+ return 0;
+}