diff options
author | Kevin Pouget <kpouget@sourceware.org> | 2011-10-27 11:04:27 +0000 |
---|---|---|
committer | Kevin Pouget <kpouget@sourceware.org> | 2011-10-27 11:04:27 +0000 |
commit | 2231f1fb609de30056ec5d3f526b39ee146efcab (patch) | |
tree | c7f513cc242b04a687017f406ba7507fca657df7 /gdb/stack.c | |
parent | f77b9a5df0dca976e9fa9c8731c313d5b54befe1 (diff) | |
download | gdb-2231f1fb609de30056ec5d3f526b39ee146efcab.zip gdb-2231f1fb609de30056ec5d3f526b39ee146efcab.tar.gz gdb-2231f1fb609de30056ec5d3f526b39ee146efcab.tar.bz2 |
Move unwind reasons to an external .def file
gdb/
* frame.c (frame_stop_reason_string): Rewrite using
unwind_stop_reasons.def.
* frame.h (enum unwind_stop_reason): Likewise.
* python/py-frame.c (gdbpy_initialize_frames): Likewise.
(gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
constants for bound-checking.
* unwind_stop_reasons.def: New file.
* stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
instead of a distinct value.
doc/
* gdb.texinfo ((Frames In Python): Document
gdb.FRAME_UNWIND_FIRST_ERROR contant.
Diffstat (limited to 'gdb/stack.c')
-rw-r--r-- | gdb/stack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/stack.c b/gdb/stack.c index 953d3bd..003725a 100644 --- a/gdb/stack.c +++ b/gdb/stack.c @@ -1625,7 +1625,7 @@ backtrace_command_1 (char *count_exp, int show_locals, int from_tty) enum unwind_stop_reason reason; reason = get_frame_unwind_stop_reason (trailing); - if (reason > UNWIND_FIRST_ERROR) + if (reason >= UNWIND_FIRST_ERROR) printf_filtered (_("Backtrace stopped: %s\n"), frame_stop_reason_string (reason)); } |