From 70e38b8e988c7db764a7344f0d27273706543a54 Mon Sep 17 00:00:00 2001 From: Andrew Burgess Date: Wed, 28 May 2014 22:46:33 +0100 Subject: Rename frame_stop_reason_string to unwind_stop_reason_to_string. https://sourceware.org/ml/gdb-patches/2014-05/msg00721.html This function is confusingly named, the "frame_" in the name implies it somehow is frame dependent, when in reality the function just converts an 'enum unwind_stop_reason' value to a string. gdb/ChangeLog: * frame.c (frame_stop_reason_string): Rename to ... (unwind_stop_reason_to_string): this. * frame.h (frame_stop_reason_string): Rename to ... (unwind_stop_reason_to_string): this. * stack.c (frame_info): Update call to frame_stop_reason_string. (backtrace_command_1): Likewise. * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise. * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise. --- gdb/frame.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/frame.c') diff --git a/gdb/frame.c b/gdb/frame.c index cbff25f..f44cf50 100644 --- a/gdb/frame.c +++ b/gdb/frame.c @@ -2561,7 +2561,7 @@ get_frame_unwind_stop_reason (struct frame_info *frame) /* Return a string explaining REASON. */ const char * -frame_stop_reason_string (enum unwind_stop_reason reason) +unwind_stop_reason_to_string (enum unwind_stop_reason reason) { switch (reason) { -- cgit v1.1