This is the mail archive of the gdb-patches@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]

FYI: fix up gdb.objc


I'm checking this in.

This changes gdb.objc to use standard_testfile.

It also removes the unneeded (because unused) declarations of objdir.
After this, gdb.objc is objdir-free.

Regression tested on x86-64 Fedora 16.

Tom

2012-06-22  Tom Tromey  <tromey@redhat.com>

	* gdb.objc/basicclass.exp: Use standard_testfile.
	(do_objc_tests): Don't declare objdir.
	* gdb.objc/nondebug.exp: Use standard_testfile.
	(do_objc_tests): Don't declare objdir.
	* gdb.objc/objcdecode.exp: Use standard_testfile.
	(do_objc_tests): Don't declare objdir.

Index: gdb.objc/basicclass.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.objc/basicclass.exp,v
retrieving revision 1.17
diff -u -r1.17 basicclass.exp
--- gdb.objc/basicclass.exp	18 May 2012 15:31:42 -0000	1.17
+++ gdb.objc/basicclass.exp	22 Jun 2012 16:50:31 -0000
@@ -15,9 +15,7 @@
 
 # This file was written by Adam Fedor (fedor@gnu.org)
 
-set testfile "basicclass"
-set srcfile ${testfile}.m
-set binfile ${objdir}/${subdir}/${testfile}
+standard_testfile .m
 
 #
 # Objective-C program compilation isn't standard. We need to figure out
@@ -73,7 +71,6 @@
 
 proc do_objc_tests {} {
     global subdir
-    global objdir
     global srcdir
     global binfile
     global gdb_prompt
Index: gdb.objc/nondebug.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.objc/nondebug.exp,v
retrieving revision 1.12
diff -u -r1.12 nondebug.exp
--- gdb.objc/nondebug.exp	16 Jan 2012 16:21:51 -0000	1.12
+++ gdb.objc/nondebug.exp	22 Jun 2012 16:50:31 -0000
@@ -17,9 +17,7 @@
 
 # This file was written by Adam Fedor (fedor@gnu.org)
 
-set testfile "nondebug"
-set srcfile ${testfile}.m
-set binfile ${objdir}/${subdir}/${testfile}
+standard_testfile .m
 
 #
 # Objective-C program compilation isn't standard. We need to figure out
@@ -31,7 +29,6 @@
 
 proc do_objc_tests {} {
     global subdir
-    global objdir
     global srcdir
     global binfile
     global gdb_prompt
Index: gdb.objc/objcdecode.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.objc/objcdecode.exp,v
retrieving revision 1.13
diff -u -r1.13 objcdecode.exp
--- gdb.objc/objcdecode.exp	16 Jan 2012 16:21:51 -0000	1.13
+++ gdb.objc/objcdecode.exp	22 Jun 2012 16:50:31 -0000
@@ -17,9 +17,7 @@
 
 # This file was written by Adam Fedor (fedor@gnu.org)
 
-set testfile "objcdecode"
-set srcfile ${testfile}.m
-set binfile ${objdir}/${subdir}/${testfile}
+standard_testfile .m
 
 #
 # Objective-C program compilation isn't standard. We need to figure out
@@ -31,7 +29,6 @@
 
 proc do_objc_tests {} {
     global subdir
-    global objdir
     global srcdir
     global binfile
     global gdb_prompt


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