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 ada-tasks.c testsuite/Change ...


CVSROOT:	/cvs/src
Module name:	src
Changes by:	brobecke@sourceware.org	2011-10-21 18:46:06

Modified files:
	gdb            : ChangeLog ada-tasks.c 
	gdb/testsuite  : ChangeLog 
Added files:
	gdb/testsuite/gdb.ada: mi_task_info.exp 
	gdb/testsuite/gdb.ada/mi_task_info: task_switch.adb 

Log message:
	[Ada] Fix number of lines in -ada-task-info output
	
	When using the new -ada-task-info command with an argument,
	the output would say that there are N entries in the returned
	table, (where N is the total number of tasks present in the inferior).
	But, in fact, the table would only contain at most 1 entry.
	
	This patch fixes this by properly computing the number of
	tasks being displayed before giving it to the uiout.
	
	gdb/ChangeLog:
	
	* ada-tasks.c (print_ada_task_info): Fix computation of
	number of tasks displayed in command output.
	
	gdb/testsuite/ChangeLog:
	
	* gdb.ada/mi_task_info/task_switch.adb: New file.
	* gdb.ada/mi_task_info.exp: New file.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.13449&r2=1.13450
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ada-tasks.c.diff?cvsroot=src&r1=1.49&r2=1.50
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.2906&r2=1.2907
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.ada/mi_task_info.exp.diff?cvsroot=src&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.ada/mi_task_info/task_switch.adb.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]