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/testsuite ChangeLog gdb.base/list.exp ...


CVSROOT:	/cvs/src
Module name:	src
Branch: 	gdb_7_6-branch
Changes by:	palves@sourceware.org	2013-03-28 11:46:26

Modified files:
	gdb/testsuite  : ChangeLog 
	gdb/testsuite/gdb.base: list.exp list0.c 

Log message:
	list.exp: Avoid hardcoding line numbers.
	
	The previous patch actually wasn't the first time I had to update line
	numbers in this file.
	
	This avoids hard coding line numbers, hopefully making the next time a
	little easier.
	
	Tested on x86_64 Fedora 17.
	
	gdb/testsuite/
	2013-03-28  Pedro Alves  <palves@redhat.com>
	
	* gdb.base/list.exp (last_line): New global.
	(last_line_re): New global.
	(test_listsize, test_list_function, test_list_forward)
	(test_repeat_list_command, test_list_range)
	(test_list_filename_and_function): Use them.
	* gdb.base/list0.c: Comment the last line of the file with "last
	line".

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&only_with_tag=gdb_7_6-branch&r1=1.3580.2.8&r2=1.3580.2.9
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.base/list.exp.diff?cvsroot=src&only_with_tag=gdb_7_6-branch&r1=1.34.2.2&r2=1.34.2.3
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.base/list0.c.diff?cvsroot=src&only_with_tag=gdb_7_6-branch&r1=1.2&r2=1.2.4.1


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