gdb/guile: Have gdbscm_safe_source_script return a unique_ptr
Change gdbscm_safe_source_script to return a gdb::unique_xmalloc_ptr<char> instead of a raw char*. Update the users of this function. There should be no user visible change after this commit. gdb/ChangeLog: * guile/guile-internal.h (gdbscm_safe_source_script): Change function return type. * guile/guile.c (gdbscm_source_script): Update to handle change in gdbscm_safe_source_script. * guile/scm-objfile.c (gdbscm_source_objfile_script): Likewise. * guile/scm-safe-call.c (gdbscm_safe_source_script): Change return type.
This commit is contained in:
parent
4896932e62
commit
9589edb836
5 changed files with 18 additions and 15 deletions
|
@ -408,7 +408,8 @@ extern SCM gdbscm_unsafe_call_1 (SCM proc, SCM arg0);
|
|||
extern gdb::unique_xmalloc_ptr<char> gdbscm_safe_eval_string
|
||||
(const char *string, int display_result);
|
||||
|
||||
extern char *gdbscm_safe_source_script (const char *filename);
|
||||
extern gdb::unique_xmalloc_ptr<char> gdbscm_safe_source_script
|
||||
(const char *filename);
|
||||
|
||||
extern void gdbscm_enter_repl (void);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue