aboutsummaryrefslogtreecommitdiff
path: root/gdb/stack.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2017-09-09 10:14:52 -0600
committerTom Tromey <tom@tromey.com>2017-09-11 16:15:11 -0600
commitc6dc63a16299e22fcb5bc13b34cb402a1bfcf6b9 (patch)
treeba6c7f5c359753ab3cc712e8e98d8211b9caecdd /gdb/stack.h
parentd6b9b80f9483b6c1a3a018c0fcaf813ca098d8af (diff)
downloadgdb-c6dc63a16299e22fcb5bc13b34cb402a1bfcf6b9.zip
gdb-c6dc63a16299e22fcb5bc13b34cb402a1bfcf6b9.tar.gz
gdb-c6dc63a16299e22fcb5bc13b34cb402a1bfcf6b9.tar.bz2
Remove cleanups from find_frame_funname
This changes find_frame_funname to return a unique_xmalloc_ptr and then fixes up the callers. This removes several cleanups. ChangeLog 2017-09-11 Tom Tromey <tom@tromey.com> * ada-lang.c (is_known_support_routine): Update. (ada_unhandled_exception_name_addr_from_raise): Update. * guile/scm-frame.c (gdbscm_frame_name): Update. * python/py-frame.c (frapy_name): Update. (frapy_function): Update. * stack.h (find_frame_funname): Update. * stack.c (find_frame_funname): Return unique_xmalloc_ptr. (print_frame): Update.
Diffstat (limited to 'gdb/stack.h')
-rw-r--r--gdb/stack.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/stack.h b/gdb/stack.h
index f41d21e..3379318 100644
--- a/gdb/stack.h
+++ b/gdb/stack.h
@@ -22,8 +22,9 @@
void select_frame_command (char *level_exp, int from_tty);
-void find_frame_funname (struct frame_info *frame, char **funname,
- enum language *funlang, struct symbol **funcp);
+gdb::unique_xmalloc_ptr<char> find_frame_funname (struct frame_info *frame,
+ enum language *funlang,
+ struct symbol **funcp);
typedef void (*iterate_over_block_arg_local_vars_cb) (const char *print_name,
struct symbol *sym,