* gdb.cp/infcall-dlopen.cc (openlib): Support NULL FILENAME.
(main): Make openlib dummy call.
2010-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
+ * gdb.cp/infcall-dlopen.cc (openlib): Support NULL FILENAME.
+ (main): Make openlib dummy call.
+
+2010-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
+
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.
{
void *h = dlopen (filename, RTLD_LAZY);
+ if (filename == NULL)
+ return 0;
+
if (h == NULL)
return 0;
if (dlclose (h) != 0)
int
main (void)
{
+ /* Dummy call to get the function always compiled in. */
+ openlib (NULL);
+
return 0;
}