diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-01-21 19:32:42 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-01-21 19:32:42 +0000 |
commit | 675cab36a3321d5fbc956952921150d676a0409e (patch) | |
tree | cb0f79da49e5fda441193685ab691822ad77c2fc /gdb/frame.h | |
parent | f3acddfe9e51326fb4a742dab1304ef56c16c27d (diff) | |
download | gdb-675cab36a3321d5fbc956952921150d676a0409e.tar.gz |
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.
Diffstat (limited to 'gdb/frame.h')
-rw-r--r-- | gdb/frame.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/frame.h b/gdb/frame.h index 64f932a2994..8e0da6df364 100644 --- a/gdb/frame.h +++ b/gdb/frame.h @@ -445,6 +445,7 @@ enum print_what allocate memory using this method. */ extern void *frame_obstack_zalloc (unsigned long size); +#define FRAME_OBSTACK_ZALLOC(TYPE) ((TYPE *) frame_obstack_zalloc (sizeof (TYPE))) /* If FRAME_CHAIN_VALID returns zero it means that the given frame is the outermost one and has no caller. */ |