aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/break-interp-main.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2010-01-14 21:04:53 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2010-01-14 21:04:53 +0000
commit06a6f27066c695efbde2773efafd2be68f7a7d1c (patch)
tree16bd06f816102ce5b84163db80e753e7a2ccc0d0 /gdb/testsuite/gdb.base/break-interp-main.c
parent51bee8e9b74abe4f87f96d3ec97e98d34426aae7 (diff)
downloadgdb-06a6f27066c695efbde2773efafd2be68f7a7d1c.zip
gdb-06a6f27066c695efbde2773efafd2be68f7a7d1c.tar.gz
gdb-06a6f27066c695efbde2773efafd2be68f7a7d1c.tar.bz2
gdb/testsuite/
* gdb.base/break-interp-main.c, gdb.base/break-interp-lib.c: New. * gdb.base/break-interp.exp: Exit on skip_shlib_tests. Change $srcfile. New variables $binfile_lib and $srcfile_lib. Call get_compiler_info and gdb_compile_shlib. Use new -Wl compiler options. (dl bt, main bt): New tests.
Diffstat (limited to 'gdb/testsuite/gdb.base/break-interp-main.c')
-rw-r--r--gdb/testsuite/gdb.base/break-interp-main.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/break-interp-main.c b/gdb/testsuite/gdb.base/break-interp-main.c
new file mode 100644
index 0000000..57b81f6
--- /dev/null
+++ b/gdb/testsuite/gdb.base/break-interp-main.c
@@ -0,0 +1,26 @@
+/* This testcase is part of GDB, the GNU debugger.
+
+ Copyright 2009 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/>. */
+
+extern void libfunc (void);
+
+int
+main (void)
+{
+ libfunc ();
+
+ return 0;
+}