aboutsummaryrefslogtreecommitdiff
path: root/gdbsupport
diff options
context:
space:
mode:
authorSergio Durigan Junior <sergiodj@redhat.com>2020-02-25 15:50:16 -0500
committerSergio Durigan Junior <sergiodj@redhat.com>2020-02-28 11:04:28 -0500
commitd7592e974706637058867b02626c52a30ef0a2ee (patch)
tree88ceaf4d18d5600ebe1b36472d8675def26158be /gdbsupport
parentf7a7000d486f6fc456e9332214b89d01c3639fb1 (diff)
downloadgdb-d7592e974706637058867b02626c52a30ef0a2ee.zip
gdb-d7592e974706637058867b02626c52a30ef0a2ee.tar.gz
gdb-d7592e974706637058867b02626c52a30ef0a2ee.tar.bz2
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 <sergiodj@redhat.com> * gdb-dlfcn.h (gdb_dlopen): Update comment.
Diffstat (limited to 'gdbsupport')
-rw-r--r--gdbsupport/ChangeLog4
-rw-r--r--gdbsupport/gdb-dlfcn.h4
2 files changed, 6 insertions, 2 deletions
diff --git a/gdbsupport/ChangeLog b/gdbsupport/ChangeLog
index d01966e..88f2b82 100644
--- a/gdbsupport/ChangeLog
+++ b/gdbsupport/ChangeLog
@@ -1,3 +1,7 @@
+2020-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
+
+ * gdb-dlfcn.h (gdb_dlopen): Update comment.
+
2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
* configure: Regenerate.
diff --git a/gdbsupport/gdb-dlfcn.h b/gdbsupport/gdb-dlfcn.h
index 258cfeb..9e72a53 100644
--- a/gdbsupport/gdb-dlfcn.h
+++ b/gdbsupport/gdb-dlfcn.h
@@ -32,8 +32,8 @@ struct dlclose_deleter
typedef std::unique_ptr<void, dlclose_deleter> 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);