gdb/testsuite/

* gdb.cp/infcall-dlopen.cc (openlib): Support NULL FILENAME.
	(main): Make openlib dummy call.
This commit is contained in:
Jan Kratochvil 2010-10-11 21:36:26 +00:00
parent ac897c20f0
commit cfc353b10d
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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.

View File

@ -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;
}