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 ax-gdb.c


CVSROOT:	/cvs/src
Module name:	src
Changes by:	brobecke@sourceware.org	2012-03-14 01:38:30

Modified files:
	gdb            : ChangeLog ax-gdb.c 

Log message:
	ax-gdb.c: Add handling of TYPE_CODE_RANGE types.
	
	This patch fixes an error that occurs with GDB + GDBserver when
	trying to insert a breakpoint with a condition that involves
	a range type. For instance:
	
	type INT_T  is range 0 .. 1000;
	INT_VAR : INT_T := 12;
	
	And then trying to insert the breakpoint:
	
	(gdb) break foo.adb:18 if int_var > 15
	Breakpoint 1 at 0x4021eb: file foo.adb, line 18.
	(gdb) cont
	Continuing.
	/[...]/ax-gdb.c:560: internal-error: gen_fetch: bad type code
	A problem internal to GDB has been detected,
	further debugging may prove unreliable.
	Quit this debugging session? (y or n)
	
	This patch fixes the problem by adding handling for range types
	in gen_fetch.
	
	gdb/ChangeLog:
	
	* ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.14004&r2=1.14005
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ax-gdb.c.diff?cvsroot=src&r1=1.95&r2=1.96


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