aboutsummaryrefslogtreecommitdiff
path: root/gdb/frame.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-01-21 19:32:42 +0000
committerAndrew Cagney <cagney@redhat.com>2003-01-21 19:32:42 +0000
commiteb4f72c5f97465009446c097eef2204c6e8573e2 (patch)
tree8ce0abde09d7c2d367686b32f32dfbca9b310b58 /gdb/frame.h
parentdd1e43b69f269649ed1c432029f2554b92831462 (diff)
downloadgdb-eb4f72c5f97465009446c097eef2204c6e8573e2.zip
gdb-eb4f72c5f97465009446c097eef2204c6e8573e2.tar.gz
gdb-eb4f72c5f97465009446c097eef2204c6e8573e2.tar.bz2
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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/frame.h b/gdb/frame.h
index 64f932a..8e0da6d 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. */