This is the mail archive of the crossgcc@cygnus.com mailing list for the crossgcc project.


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

Re: [Fwd: Front end to gdb]


Scott Howard wrote:

> Any comments from list members?
> 
> Pollak Leon wrote:
> 
> > Dear friends,
> >  I am tired of using line gdb style on my CygWin32 machine. Please, advice
> > me what normal people are using, which fron end program, where to have it
> > and how to install.

 I have used the 'gdbtk.c' from b19 when building gdb's for cygwin32 and Linux.
With b20 the '/usr/local/share/gdbtcl' scripts are also the same. But the new 
tcl/tk-8.0 parts in b20 must be used. Unfortunately the new tcl/tk dll's aren't
compatible with the old b19 bins, so all the GDBs with the GUI must be 
rebuilt using the b20 libs, or one can stay building for b19... Sigh...

 Here are the patches for 'gdb-4.17.1/gdb/Makefile' after configuring it for 
cygwin32 host/target:

-------------------clip------------------------------------------
--- Makefile.orig	Sat May 30 11:09:23 1998
+++ Makefile	Sat May 30 11:17:59 1998
@@ -130,8 +130,21 @@
 # should set this to list all the .o or .a files to be linked in.
 SIM =
 
-
-ENABLE_CFLAGS= 
+# Where is the TCL library?  Typically in ../tcl.
+TCL		= -litcl -ltcl80
+TCL_CFLAGS	= 
+
+# Where is the TK library?  Typically in ../tk.
+TK		= -ltix4180 -ltk80
+TK_CFLAGS	= 
+
+X11_CFLAGS	= # -I/usr/X11/include
+X11_LDFLAGS	=
+X11_LIBS	=
+
+ENABLE_GDBTK	= 1
+ENABLE_CFLAGS	= 
+GDBTKLIBS	= $(TK) $(TCL)
 
 # -I. for config files.
 # -I$(srcdir) for gdb internal headers and possibly for gnu-regex.h also.
@@ -459,7 +472,7 @@
 # Makefile.in
 
 DEPFILES = $(TDEPFILES) $(XDEPFILES) $(SER_HARDWIRE) $(NATDEPFILES) \
-	   $(REMOTE_OBS) $(SIM_OBS) 
+	   $(REMOTE_OBS) $(SIM_OBS) gdbtk.o
 
 SOURCES = $(SFILES) $(ALLDEPFILES) $(YYFILES) 
 # Don't include YYFILES (*.tab.c) because we already include *.y in SFILES,
@@ -1065,6 +1078,10 @@
 fork-child.o: fork-child.c $(wait_h) $(defs_h) $(gdbcore_h) \
 	$(inferior_h) target.h terminal.h gdbthread.h gdb_string.h
 
+gdbtk.o: gdbtk.c $(defs_h) $(symtab_h) $(inferior_h) $(command_h) \
+	$(bfd_h) symfile.h objfiles.h target.h gdb_string.h
+	$(CC) -c $(INTERNAL_CFLAGS) $(TCL_CFLAGS) $(TK_CFLAGS) $(X11_CFLAGS) \
+		$(srcdir)/gdbtk.c -DGDBTK_LIBRARY=\"$(datadir)/gdbtcl\"
 
 gdbtypes.o: gdbtypes.c $(bfd_h) complaints.h $(defs_h) $(expression_h) \
 	$(gdbtypes_h) language.h objfiles.h symfile.h $(symtab_h) target.h \
-------------------clip------------------------------------------

 I built first a Linux-to-cygwin32-b20 cross-compiler and used GDB as a test,
building the cygwin32 host/target GDB with GUI. For this I used the gdb-4.17
and the gdb-981029 snapshot sources. So the 'gdb-4.17.1' version (the same 
as with b20) will quite surely work with the previous patches... (The 
'gdb-4.17.1' is the snapshot release before 'gdb-981029', from April or May...  
Please look at: 'www.cygnus.com/~meissner' or 'ftp.cygnus.com/private/gdb')

 Cheers, Kai
________________________________________________
To get help for the crossgcc list, send mail to
crossgcc-request@cygnus.com with the text 'help'
(without the quotes) in the body of the message.