* gdb.texinfo (Backtraces): Document "set backtrace-below-main".
authorDaniel Jacobowitz <drow@false.org>
Sun, 5 Jan 2003 01:38:41 +0000 (01:38 +0000)
committerDaniel Jacobowitz <drow@false.org>
Sun, 5 Jan 2003 01:38:41 +0000 (01:38 +0000)
* gdbint.texinfo (FRAME_CHAIN_VALID): Update documentation.

gdb/doc/ChangeLog
gdb/doc/gdb.texinfo
gdb/doc/gdbint.texinfo

index c7e26c78c1a074ad9fb33be27cdbeb0051f73925..a24ee2fe008a885cc5a44238e620757069626776 100644 (file)
@@ -1,3 +1,8 @@
+2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
+
+       * gdb.texinfo (Backtraces): Document "set backtrace-below-main".
+       * gdbint.texinfo (FRAME_CHAIN_VALID): Update documentation.
+
 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
 
        * gdb.texinfo (Controlling GDB): Add ABI section.  Document
index af42b0053b56345d4bb332a70fe42448a710d132..0f7ed9f29b2f2b35a58dd66fd73d71b760b5e99d 100644 (file)
@@ -3857,6 +3857,26 @@ The display for frame zero does not begin with a program counter
 value, indicating that your program has stopped at the beginning of the
 code for line @code{993} of @code{builtin.c}.
 
+Most programs have a standard entry point---a place where system libraries
+and startup code transition into user code.  For C this is @code{main}.
+When @value{GDBN} finds the entry function in a backtrace it will terminate
+the backtrace, to avoid tracing into highly system-specific (and generally
+uninteresting) code.  If you need to examine the startup code, then you can
+change this behavior.
+
+@table @code
+@item set backtrace-below-main off
+Backtraces will stop when they encounter the user entry point.  This is the
+default.
+
+@item set backtrace-below-main
+@itemx set backtrace-below-main on
+Backtraces will continue past the user entry point to the top of the stack.
+
+@item show backtrace-below-main
+Display the current backtrace policy.
+@end table
+
 @node Selection
 @section Selecting a frame
 
index 9ce6ecb88b6a0e4da47467c651b1086bacca8586..78de35792bd6421d892d27db9acef441d1e6f02b 100644 (file)
@@ -3277,26 +3277,12 @@ Given @var{frame}, return a pointer to the calling frame.
 
 @item FRAME_CHAIN_VALID(@var{chain}, @var{thisframe})
 @findex FRAME_CHAIN_VALID
-Define this to be an expression that returns zero if the given frame is
-an outermost frame, with no caller, and nonzero otherwise.  Several
-common definitions are available:
-
-@itemize @bullet
-@item
-@code{file_frame_chain_valid} is nonzero if the chain pointer is nonzero
-and given frame's PC is not inside the startup file (such as
-@file{crt0.o}).
-
-@item
-@code{func_frame_chain_valid} is nonzero if the chain
-pointer is nonzero and the given frame's PC is not in @code{main} or a
-known entry point function (such as @code{_start}).
-
-@item
-@code{generic_file_frame_chain_valid} and
-@code{generic_func_frame_chain_valid} are equivalent implementations for
-targets using generic dummy frames.
-@end itemize
+Define this to be an expression that returns zero if the given frame is an
+outermost frame, with no caller, and nonzero otherwise.  Most normal
+situations can be handled without defining this macro, including @code{NULL}
+chain pointers, dummy frames, and frames whose PC values are inside the
+startup file (e.g.@: @file{crt0.o}), inside @code{main}, or inside
+@code{_start}.
 
 @item FRAME_INIT_SAVED_REGS(@var{frame})
 @findex FRAME_INIT_SAVED_REGS
This page took 0.043496 seconds and 4 git commands to generate.