mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-02 20:53:06 +08:00
Change rewrite_source_path to return a unique_xmalloc_ptr
This changes rewrite_source_path to return a unique_xmalloc_ptr and fixes up the callers. This allows removing some cleanups. ChangeLog 2017-08-22 Tom Tromey <tom@tromey.com> * source.h (rewrite_source_path): Return a unique_xmalloc_ptr. * source.c (rewrite_source_path): Return a unique_xmalloc_ptr. (find_and_open_source, symtab_to_fullname): Update. * psymtab.c (psymtab_to_fullname): Update.
This commit is contained in:
@ -48,7 +48,7 @@ extern int find_and_open_source (const char *filename,
|
||||
negative number for error. */
|
||||
extern int open_source_file (struct symtab *s);
|
||||
|
||||
extern char *rewrite_source_path (const char *path);
|
||||
extern gdb::unique_xmalloc_ptr<char> rewrite_source_path (const char *path);
|
||||
|
||||
extern const char *symtab_to_fullname (struct symtab *s);
|
||||
|
||||
|
Reference in New Issue
Block a user