2003-01-21 Andrew Cagney <ac131313@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Tue, 21 Jan 2003 19:32:42 +0000 (19:32 +0000)
committerAndrew Cagney <cagney@redhat.com>
Tue, 21 Jan 2003 19:32:42 +0000 (19:32 +0000)
commiteb4f72c5f97465009446c097eef2204c6e8573e2
tree8ce0abde09d7c2d367686b32f32dfbca9b310b58
parentdd1e43b69f269649ed1c432029f2554b92831462
2003-01-21  Andrew Cagney  <ac131313@redhat.com>

* frame.h (FRAME_OBSTACK_ZALLOC): Define.
* blockframe.c (backtrace_below_main): Move to "frame.c".
(frame_chain_valid): Delete check for backtrace_below_main.
(_initialize_blockframe): Delete initialization, move ``set
backtrace-below-main'' command to "frame.c".
(do_flush_frames_sfunc): Delete function.
* frame.c: Include "command.h" and "gdbcmd.h".
(frame_type_from_pc): New function.
(create_new_frame): Use frame_type_from_pc.
(legacy_get_prev_frame): New function.
(get_prev_frame): Rewrite.  When an old style frame, call
legacy_get_prev_frame.  Otherwize, unwind the PC first.
(_initialize_frame): Add ``set backtrace-below-main'' command.
* Makefile.in (frame.o): Update dependencies.
gdb/ChangeLog
gdb/Makefile.in
gdb/blockframe.c
gdb/frame.c
gdb/frame.h