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 linespec.c testsuite/ChangeL ...


CVSROOT:	/cvs/src
Module name:	src
Changes by:	brobecke@sourceware.org	2012-09-18 16:52:19

Modified files:
	gdb            : ChangeLog linespec.c 
	gdb/testsuite  : ChangeLog 
Added files:
	gdb/testsuite/gdb.ada: bp_reset.exp 
	gdb/testsuite/gdb.ada/bp_reset: foo.adb io.adb io.ads pck.adb 
	                                pck.ads 

Log message:
	wrong language used when re-setting breakpoint
	
	The debugger sometimes fails to re-set a breakpoint as follow,
	causing it to become disabled:
	
	(gdb) b nested_sub
	Breakpoint 1 at 0x401cec: file foo.adb, line 7.
	(gdb) b do_nothing
	Breakpoint 2 at 0x401cdc: file pck.adb, line 4.
	(gdb) run
	Starting program: /[...]/foo
	Error in re-setting breakpoint 1: Function "nested_sub" not defined.
	
	Breakpoint 2, pck.do_nothing () at pck.adb:4
	4             null;
	
	This only happens on machines where the debug-file-directory is
	a valid directory name.
	
	The reason behind the error is that the linespec code that re-sets
	the breakpoints uses the current_language global when iterating
	over a symtab's symbols. However, the that global gets switched from
	Ada to C during the startup phase, probably as a side-effect of stopping
	in some system code for which debugging info is available. The fix
	is to make sure that we use the correct language.
	
	gdb/ChangeLog:
	
	* linespec.c (iterate_over_all_matching_symtabs): Use the correct
	language when iterating over symbols.
	
	gdb/testsuite/ChangeLog:
	
	* gdb.ada/bp_reset: New testcase.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.14675&r2=1.14676
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/linespec.c.diff?cvsroot=src&r1=1.168&r2=1.169
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.3379&r2=1.3380
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.ada/bp_reset.exp.diff?cvsroot=src&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.ada/bp_reset/foo.adb.diff?cvsroot=src&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.ada/bp_reset/io.adb.diff?cvsroot=src&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.ada/bp_reset/io.ads.diff?cvsroot=src&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.ada/bp_reset/pck.adb.diff?cvsroot=src&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.ada/bp_reset/pck.ads.diff?cvsroot=src&r1=NONE&r2=1.1


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