diff options
author | Tom Tromey <tom@tromey.com> | 2017-08-05 10:29:56 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2017-08-22 09:30:12 -0600 |
commit | 0b581c69fe7186d7d0ea1283c7ecf9839a8827cc (patch) | |
tree | b4aa2a0e6c53d2fadd33e3b05e04b234ba940de9 /gdb/source.h | |
parent | 14278e1fdbe045df184d6dd546ff6a1e9e3c3797 (diff) | |
download | gdb-0b581c69fe7186d7d0ea1283c7ecf9839a8827cc.zip gdb-0b581c69fe7186d7d0ea1283c7ecf9839a8827cc.tar.gz gdb-0b581c69fe7186d7d0ea1283c7ecf9839a8827cc.tar.bz2 |
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.
Diffstat (limited to 'gdb/source.h')
-rw-r--r-- | gdb/source.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/source.h b/gdb/source.h index ee9f3fa..263715a 100644 --- a/gdb/source.h +++ b/gdb/source.h @@ -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); |