OSDN Git Service

Move unwind reasons to an external .def file
authorkpouget <kpouget>
Thu, 27 Oct 2011 11:04:25 +0000 (11:04 +0000)
committerkpouget <kpouget>
Thu, 27 Oct 2011 11:04:25 +0000 (11:04 +0000)
commitd21b56efa9143279f17446d7b69699973ec77b43
tree2ad2e72656283d2a293d51c769af4b2c50b5ce2c
parent7c5408f3ebb0fda25cde65ef8b14f6bac6e70cb9
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.
gdb/ChangeLog
gdb/doc/ChangeLog
gdb/doc/gdb.texinfo
gdb/frame.c
gdb/frame.h
gdb/python/py-frame.c
gdb/stack.c
gdb/unwind_stop_reasons.def [new file with mode: 0644]