Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA]: ObjC Testsuite
@ 2003-02-20  2:19 Adam Fedor
  2003-03-03  2:47 ` Elena Zannoni
  0 siblings, 1 reply; 7+ messages in thread
From: Adam Fedor @ 2003-02-20  2:19 UTC (permalink / raw)
  To: GDB Patches

[-- Attachment #1: Type: text/plain, Size: 0 bytes --]



[-- Attachment #2: objc26.patch --]
[-- Type: text/plain, Size: 1532 bytes --]

2003-02-19  Adam Fedor  <fedor@gnu.org>

	* Makefile.in (ALL_SUBDIRS): Add gdb.objc
	* configure.in (AC_OUTPUT): Add gdb.objc/Makefile.
	* gdb.objc, gdb.objc/Makefile.in, gdb.objc/myclass.exp,
	gdb.objc/myclass.m: New files.

Index: testsuite/Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/Makefile.in,v
retrieving revision 1.5
diff -u -p -r1.5 Makefile.in
--- testsuite/Makefile.in	9 Jan 2003 18:50:21 -0000	1.5
+++ testsuite/Makefile.in	14 Feb 2003 04:24:47 -0000
@@ -36,7 +36,7 @@ EXEEXT = @EXEEXT@
 SUBDIRS = @subdirs@
 RPATH_ENVVAR = @RPATH_ENVVAR@
 ALL_SUBDIRS = gdb.arch gdb.asm gdb.base gdb.c++ gdb.disasm gdb.java gdb.mi \
-	gdb.threads gdb.trace $(SUBDIRS)
+	gdb.objc gdb.threads gdb.trace $(SUBDIRS)
 
 EXPECT = `if [ -f $${rootme}/../../expect/expect ] ; then \
           echo $${rootme}/../../expect/expect ; \
Index: testsuite/configure.in
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/configure.in,v
retrieving revision 1.8
diff -u -p -r1.8 configure.in
--- testsuite/configure.in	4 Jan 2003 15:37:36 -0000	1.8
+++ testsuite/configure.in	14 Feb 2003 04:24:48 -0000
@@ -115,4 +115,4 @@ AC_EXEEXT
 AC_CONFIG_SUBDIRS($configdirs)
 AC_OUTPUT([Makefile gdb.arch/Makefile gdb.asm/Makefile gdb.base/Makefile \
   gdb.c++/Makefile gdb.disasm/Makefile gdb.java/Makefile gdb.mi/Makefile \
-  gdb.threads/Makefile gdb.trace/Makefile])
+  gdb.objc/Makefile gdb.threads/Makefile gdb.trace/Makefile])

[-- Attachment #3: gdb.objc.tar.bz2 --]
[-- Type: application/x-bzip2, Size: 2834 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: [RFA] ObjC Testsuite
@ 2003-03-03 16:15 Michael Elizabeth Chastain
  2003-03-04  4:45 ` Adam Fedor
  2003-03-04  6:42 ` richard
  0 siblings, 2 replies; 7+ messages in thread
From: Michael Elizabeth Chastain @ 2003-03-03 16:15 UTC (permalink / raw)
  To: fedor, fnasser, msalter; +Cc: ezannoni, gdb-gnats, gdb-patches

In gdb.objc/Makefile.in, the distclean goal needs these commands:

  distclean maintainer-clean realclean: clean
  	-rm -f Makefile config.status config.log

Specifically, distclean must remove config.status.  The release
packaging process depends on this.  First it configures the whole tree
and then it makes 'distclean' in the whole tree.  If a config.status
file is left alive after 'make distclean', then it will get into the
gdb.tar tarball, and 'configure' will fail because the config.status
file already exists.

As Elena Z mentioned, the name of the pthreads library varies
from system to system.  We've encountered -lpthreads, -lpthread,
and -lthread.  We have to figure out a way to handle this.

I think the cleanest way is to add 'proc gdb_compile_objc'
in lib/gdb.exp, similar to 'proc gdb_compile_pthreads'.  Then we
can mess with the internals of 'proc gdb_compile_objc' as needed.
For instance, on my system, native i686-pc-linux-gnu with gcc 3.2.2,
gcc needs only '-lobjc' without any explicit thread library in
order to link Objective C programs.  Fernando N and Mark S,
what do you think?

I'm okay with the names 'myclass.exp' and 'myclass.c'.  I wouldn't mind
if they became a bit less generic than 'my....'.  I don't like the names
'objc-class.exp' and 'objc-class.m' because these are already in the
objc directory, and 'objc-' just eats 5 characters of uniqueness that we
need for 8.3 uniqueness.

On the next submission, please use 'cvs diff -N' to include the new
files in the diff, rather than attaching a diff + a tarball.
That's easier for me.

We need one or more maintainers for the new gdb.objc.  I volunteer to
be one of the maintainers.  Adam, are you willing to be a maintainer?

Also, this whole review process is getting messy, we are going to have
several people pushing Adam in different directions.  I would like to
figure out *first* who are going to be the maintainer(s) of
gdb.objc, and then those people should be the reviewers of this patch.

Michael C


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-03-05  6:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-20  2:19 [RFA]: ObjC Testsuite Adam Fedor
2003-03-03  2:47 ` Elena Zannoni
2003-03-03 16:15 [RFA] " Michael Elizabeth Chastain
2003-03-04  4:45 ` Adam Fedor
2003-03-04  6:42 ` richard
2003-03-04 14:54   ` Andrew Cagney
2003-03-05  6:15     ` richard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox