From 675cab36a3321d5fbc956952921150d676a0409e Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Tue, 21 Jan 2003 19:32:42 +0000 Subject: 2003-01-21 Andrew Cagney * 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/frame.h | 1 + 1 file changed, 1 insertion(+) (limited to 'gdb/frame.h') 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. */ -- cgit v1.2.1