This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

cli/926


The following reply was made to PR cli/926; it has been noted by GNATS.

From: cagney@sources.redhat.com
To: gdb-gnats@sourceware.org
Cc:  
Subject: cli/926
Date: 9 Aug 2003 15:10:36 -0000

 CVSROOT:	/cvs/src
 Module name:	src
 Branch: 	gdb_6_0-branch
 Changes by:	cagney@sourceware.org	2003-08-09 15:10:36
 
 Modified files:
 	gdb            : ChangeLog command.h frame.c 
 	gdb/cli        : cli-decode.c 
 	gdb/doc        : ChangeLog gdb.texinfo 
 
 Log message:
 	2003-08-09  Andrew Cagney  <cagney@redhat.com>
 	
 	Fix GDB PR cli/926.
 	* cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
 	* command.h (add_setshow_uinteger_cmd): Declare.
 	* frame.c (set_backtrace_cmd): New function.
 	(show_backtrace_cmd): New function.
 	* frame.c (_initialize_frame): Replace "set/show
 	backtrace-below-main" with "set/show backtrace past-main".  Add
 	command "set/show backtrace limit".
 	(backtrace_past_main): Rename "backtrace_below_main".
 	(backtrace_limit): New variable.
 	(get_prev_frame): Update.  Check the backtrace_limit.
 	
 	2003-08-09  Andrew Cagney  <cagney@redhat.com>
 	
 	* gdb.texinfo (Backtrace): Replace "set/show backtrace-below-main"
 	with "set/show backtrace past-main" and "set/show backtrace
 	limit".
 	
 	Index: doc/gdb.texinfo
 	===================================================================
 	RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v
 	retrieving revision 1.174
 	diff -u -r1.174 gdb.texinfo
 	--- doc/gdb.texinfo	8 Aug 2003 01:58:00 -0000	1.174
 	+++ doc/gdb.texinfo	9 Aug 2003 14:57:10 -0000
 	@@ -3922,27 +3922,40 @@
 	value, indicating that your program has stopped at the beginning of the
 	code for line @code{993} of @code{builtin.c}.
 	
 	-@kindex set backtrace-below-main
 	-@kindex show backtrace-below-main
 	+@kindex set backtrace past-main
 	+@kindex show backtrace past-main
 	+@kindex set backtrace limit
 	+@kindex show backtrace limit
 	
 	-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.
 	+Most programs have a standard user 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, or limit the number of levels
 	+in a backtrace, you can change this behavior:
 	
 	@table @code
 	-@item set backtrace-below-main off
 	+@item set backtrace past-main
 	+@itemx set backtrace past-main on
 	+Backtraces will continue past the user entry point.
 	+
 	+@item set backtrace past-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 past-main
 	+Display the current user entry point backtrace policy.
 	+
 	+@item set backtrace limit @var{n}
 	+@itemx set backtrace limit 0
 	+@cindex backtrace limit
 	+Limit the backtrace to @var{n} levels.  A value of zero means
 	+unlimited.
 	
 	-@item show backtrace-below-main
 	-Display the current backtrace policy.
 	+@item show backtrace limit
 	+Display the current limit on backtrace levels.
 	@end table
 	
 	@node Selection
 
 Patches:
 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&only_with_tag=gdb_6_0-branch&r1=1.4439.2.96&r2=1.4439.2.97
 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/command.h.diff?cvsroot=src&only_with_tag=gdb_6_0-branch&r1=1.35&r2=1.35.44.1
 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/frame.c.diff?cvsroot=src&only_with_tag=gdb_6_0-branch&r1=1.127.2.6&r2=1.127.2.7
 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/cli/cli-decode.c.diff?cvsroot=src&only_with_tag=gdb_6_0-branch&r1=1.31&r2=1.31.4.1
 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/doc/ChangeLog.diff?cvsroot=src&only_with_tag=gdb_6_0-branch&r1=1.327.2.10&r2=1.327.2.11
 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/doc/gdb.texinfo.diff?cvsroot=src&only_with_tag=gdb_6_0-branch&r1=1.166.2.7&r2=1.166.2.8
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]