Skip to content
This repository has been archived by the owner on Jul 4, 2021. It is now read-only.

Commit

Permalink
Added some more output when loading a plugin...
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Aug 6, 2008
1 parent 0a543fc commit 0a65b00
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/gdb/printcmd.c
Expand Up @@ -315,7 +315,11 @@ dataplugin_command (char *arg, int from_tty)
const int start_count = dataplugin_htab ? htab_elements (dataplugin_htab) : 0;
const char *entryname = GDB_DATAPLUGIN_ENTRY_STR;
GDB_dataplugin_entry entry = 0;
void *lib = dlopen(arg, RTLD_NOW | RTLD_LOCAL);
void *lib = NULL;

printf_filtered(_("Loading data plugin \"%s\" ...\n"), arg);

lib = dlopen(arg, RTLD_NOW | RTLD_LOCAL);
if (lib == NULL)
{
warning(_("dlopen(\"%s\") failed: %s"), arg, dlerror());
Expand Down

0 comments on commit 0a65b00

Please sign in to comment.