From: Jan Kratochvil Date: Mon, 11 Oct 2010 21:36:26 +0000 (+0000) Subject: gdb/testsuite/ X-Git-Tag: binutils-2_21-branchpoint~243 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cfc353b10d9a29b63a82451fe3b6a84e7d10eb37;p=external%2Fbinutils.git gdb/testsuite/ * gdb.cp/infcall-dlopen.cc (openlib): Support NULL FILENAME. (main): Make openlib dummy call. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 865568c..3340523 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2010-10-11 Jan Kratochvil + * gdb.cp/infcall-dlopen.cc (openlib): Support NULL FILENAME. + (main): Make openlib dummy call. + +2010-10-11 Jan Kratochvil + Fix missing _start PIE relocation on ppc64 due to stop on dl_main. * break-interp.exp (reach): Move the core body ... (reach_1): ... here. Use stop-on-solib-events for _dl_debug_state. diff --git a/gdb/testsuite/gdb.cp/infcall-dlopen.cc b/gdb/testsuite/gdb.cp/infcall-dlopen.cc index 1e389e6..7fb204c 100644 --- a/gdb/testsuite/gdb.cp/infcall-dlopen.cc +++ b/gdb/testsuite/gdb.cp/infcall-dlopen.cc @@ -23,6 +23,9 @@ openlib (const char *filename) { void *h = dlopen (filename, RTLD_LAZY); + if (filename == NULL) + return 0; + if (h == NULL) return 0; if (dlclose (h) != 0) @@ -33,5 +36,8 @@ openlib (const char *filename) int main (void) { + /* Dummy call to get the function always compiled in. */ + openlib (NULL); + return 0; }