diff options
author | Gary Benson <gary@redhat.com> | 2013-06-04 13:31:00 +0000 |
---|---|---|
committer | Gary Benson <gary@redhat.com> | 2013-06-04 13:31:00 +0000 |
commit | afacd7f34ae5f4d74b0220089c2798d332422f6a (patch) | |
tree | d887389f32417046dfd05bfc4d5e3a6539e54a4c /gdb/testsuite/gdb.base/break-probes.c | |
parent | 2013-06-04 Jan Kratochvil <jan.kratochvil@redhat.com> (diff) | |
download | binutils-gdb-afacd7f34ae5f4d74b0220089c2798d332422f6a.tar.gz binutils-gdb-afacd7f34ae5f4d74b0220089c2798d332422f6a.tar.bz2 binutils-gdb-afacd7f34ae5f4d74b0220089c2798d332422f6a.zip |
2013-06-04 Gary Benson <gbenson@redhat.com>
* gdb.base/break-probes.exp: New file.
* gdb.base/break-probes.c: Likewise.
* gdb.base/break-probes-solib.c: Likewise.
* gdb.base/info-shared.exp: New file.
* gdb.base/info-shared.c: Likewise.
* gdb.base/info-shared-solib1.c: Likewise.
* gdb.base/info-shared-solib2.c: Likewise.
Diffstat (limited to 'gdb/testsuite/gdb.base/break-probes.c')
-rw-r--r-- | gdb/testsuite/gdb.base/break-probes.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/break-probes.c b/gdb/testsuite/gdb.base/break-probes.c new file mode 100644 index 00000000000..827d442196b --- /dev/null +++ b/gdb/testsuite/gdb.base/break-probes.c @@ -0,0 +1,30 @@ +/* Copyright 2012-2013 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/>. */ + +#include <dlfcn.h> +#include <assert.h> +#include <stddef.h> + +int +main (void) +{ + void *handle = dlopen (SHLIB_NAME, RTLD_LAZY); + + assert (handle != NULL); + + dlclose (handle); + + return 0; +} |