forked from Imagelibrary/binutils-gdb
Change gdb_realpath_keepfile to return a unique_xmalloc_ptr
This changes gdb_realpath_keepfile to return a unique_xmalloc_ptr, and fixes up the callers. ChangeLog 2017-08-22 Tom Tromey <tom@tromey.com> * utils.c (gdb_realpath_keepfile): Return a gdb::unique_xmalloc_ptr. * exec.c (exec_file_attach): Update. * utils.h (gdb_realpath_keepfile): Return a gdb::unique_xmalloc_ptr.
This commit is contained in:
@@ -254,7 +254,7 @@ extern struct cleanup *make_bpstat_clear_actions_cleanup (void);
|
||||
|
||||
extern char *gdb_realpath (const char *);
|
||||
|
||||
extern char *gdb_realpath_keepfile (const char *);
|
||||
extern gdb::unique_xmalloc_ptr<char> gdb_realpath_keepfile (const char *);
|
||||
|
||||
extern gdb::unique_xmalloc_ptr<char> gdb_abspath (const char *);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user