From: Sergio Durigan Junior Date: Tue, 25 Feb 2020 20:50:16 +0000 (-0500) Subject: Fix comment for 'gdb_dlopen' X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d7592e974706637058867b02626c52a30ef0a2ee;p=binutils-gdb.git Fix comment for 'gdb_dlopen' The 'gdb_dlopen' function doesn't return NULL if the shlib load fails; it actually throws an error. This patch updates the comment to reflect this. gdbsupport/ChangeLog: 2020-02-28 Sergio Durigan Junior * gdb-dlfcn.h (gdb_dlopen): Update comment. --- diff --git a/gdbsupport/ChangeLog b/gdbsupport/ChangeLog index d01966ed1d0..88f2b821b56 100644 --- a/gdbsupport/ChangeLog +++ b/gdbsupport/ChangeLog @@ -1,3 +1,7 @@ +2020-02-28 Sergio Durigan Junior + + * gdb-dlfcn.h (gdb_dlopen): Update comment. + 2020-02-19 Andrew Burgess * configure: Regenerate. diff --git a/gdbsupport/gdb-dlfcn.h b/gdbsupport/gdb-dlfcn.h index 258cfebbc3e..9e72a53dc0a 100644 --- a/gdbsupport/gdb-dlfcn.h +++ b/gdbsupport/gdb-dlfcn.h @@ -32,8 +32,8 @@ struct dlclose_deleter typedef std::unique_ptr gdb_dlhandle_up; /* Load the dynamic library file named FILENAME, and return a handle - for that dynamic library. Return NULL if the loading fails for any - reason. */ + for that dynamic library. Throw an error if the loading fails for + any reason. */ gdb_dlhandle_up gdb_dlopen (const char *filename);