From 2c57100624571d93ebc965bed32b7d517a382e02 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Tue, 16 Jul 2013 20:43:48 +0000 Subject: * solist.h (target_so_ops.find_and_open_solib): Clarify usage of temp_pathname argument. * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname when opening the file fails. --- gdb/solist.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gdb/solist.h') diff --git a/gdb/solist.h b/gdb/solist.h index 244484a..a78e3ea 100644 --- a/gdb/solist.h +++ b/gdb/solist.h @@ -129,8 +129,10 @@ struct target_so_ops /* Find and open shared library binary file. */ bfd *(*bfd_open) (char *pathname); - /* Extra hook for finding and opening a solib. - Convenience function for remote debuggers finding host libs. */ + /* Optional extra hook for finding and opening a solib. + If TEMP_PATHNAME is non-NULL: If the file is successfully opened a + pointer to a malloc'd and realpath'd copy of SONAME is stored there, + otherwise NULL is stored there. */ int (*find_and_open_solib) (char *soname, unsigned o_flags, char **temp_pathname); -- cgit v1.1