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.
This commit is contained in:
parent
938f0e2f67
commit
70e38b8e98
6 changed files with 17 additions and 6 deletions
|
@ -1529,7 +1529,7 @@ frame_info (char *addr_exp, int from_tty)
|
|||
reason = get_frame_unwind_stop_reason (fi);
|
||||
if (reason != UNWIND_NO_REASON)
|
||||
printf_filtered (_(" Outermost frame: %s\n"),
|
||||
frame_stop_reason_string (reason));
|
||||
unwind_stop_reason_to_string (reason));
|
||||
}
|
||||
else if (get_frame_type (fi) == TAILCALL_FRAME)
|
||||
puts_filtered (" tail call frame");
|
||||
|
@ -1848,7 +1848,7 @@ backtrace_command_1 (char *count_exp, int show_locals, int no_filters,
|
|||
reason = get_frame_unwind_stop_reason (trailing);
|
||||
if (reason >= UNWIND_FIRST_ERROR)
|
||||
printf_filtered (_("Backtrace stopped: %s\n"),
|
||||
frame_stop_reason_string (reason));
|
||||
unwind_stop_reason_to_string (reason));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue