This is the mail archive of the gdb-cvs@sourceware.org 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]

src/gdb ChangeLog thread.c


CVSROOT:	/cvs/src
Module name:	src
Changes by:	palves@sourceware.org	2013-08-30 15:32:45

Modified files:
	gdb            : ChangeLog thread.c 

Log message:
	restore_selected_frame: tweak warning.
	
	I noticed SRC_LINE has special handling within print_stack_frame (mid
	statement handling), so I audited all uses, and noticed the one in
	restore_selected_frame.  I actually added this warning myself back in
	2008, but reading back, I think we can do better.  "reparsed frame" is
	probably confusing to users.
	
	Old:
	
	warning: Couldn't restore frame #2 in current thread, at reparsed frame #0
	
	45         w = 0;
	(gdb)
	
	New:
	
	warning: Couldn't restore frame #2 in current thread.  Bottom (innermost) frame selected:
	#0  foo () at foo.c:45
	45         w = 0;
	(gdb)
	
	Tested on x86_64 Fedora 17.
	
	gdb/
	2013-08-30  Pedro Alves  <palves@redhat.com>
	
	* thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
	warning text.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.15955&r2=1.15956
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/thread.c.diff?cvsroot=src&r1=1.155&r2=1.156


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