*BSD News Article 16800


Return to BSD News archive

Newsgroups: comp.os.386bsd.misc
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!howland.reston.ans.net!wupost!csus.edu!netcom.com!alm
From: alm@netcom.com (Andrew Moore)
Subject: Re: xgdb anyone?
Message-ID: <almC82HIq.LuJ@netcom.com>
Organization: Netcom Online Communications Services (408-241-9760 login: guest)
References: <C81B8H.MDL@cosy.sbg.ac.at>
Date: Thu, 3 Jun 1993 22:37:38 GMT
Lines: 69

In article <C81B8H.MDL@cosy.sbg.ac.at> peter@wiesel (Peter Burgstaller) writes:
>Hi folks!
>
>Sorry if this has been answered but I was away for a week and so
>couldn't keep up with the newsgroup.
>
>I got some posts that other people too have the problem of being unable
>to compile xgdb as it is in the sourcetree now.

How about xxgdb?  This is an alternative front end for gdb.
The follow patch works for me.

From: karl@NeoSoft.com (Karl Lehenbauer)
Subject: Complete info for fetching & building xxgdb, with patch
Organization: NeoSoft Communications Services -- (713) 684-5900
Date: Fri, 27 Nov 1992 18:31:49 GMT
Message-ID: <ByE0t4.AAo@NeoSoft.com>
Lines: 48

The xxgdb X-windows-based gdb debugger is awesome.

The latest version is apparently 1.06, and is available, among other
places, from csvax.cs.caltech.edu.  I did not see it on prep.ai.mit.edu --
it may be in the gdb tar archive, though.

If you find it in a comp.sources.x archive, do not be dismayed that
you can't find patches 4 & 5 -- patch 6 is really patch 3.

To build it under 386BSD, you'll need the following patch, which simply
adds an entry in the IMakefile for 386BSD and adds an ifdef'ed include
to one other file.

Apply the patch.  Do an xmkmf.  make.  Enjoy.

*** xxgdb.orig/Imakefile	Fri Nov 27 11:32:06 1992
--- xxgdb/Imakefile	Fri Nov 27 11:41:30 1992
***************
*** 29,34 ****
--- 29,38 ----
  #endif
  #endif
  
+ #ifdef i386BsdArchitecture
+         DEFINES = -DBSD  -DI386BSD $(DEFGDB)
+ #endif
+ 
  #ifdef PegasusArchitecture
  DEFINES = -DBSD $(DEFGDB) -DNEED_STRSTR
  #endif
*** xxgdb.orig/calldbx.c	Fri Nov 27 11:32:08 1992
--- xxgdb/calldbx.c	Fri Nov 27 11:41:25 1992
***************
*** 77,82 ****
--- 77,86 ----
  #include	<termio.h>
  #endif
  
+ #ifdef I386BSD
+ #include	<sys/ioctl_compat.h>
+ #endif
+ 
  #include	"global.h"
  
  #ifdef SYSV 
-- 
-- Email info@NeoSoft.com for info on getting interactive Internet access.
"Turn on your hot tub by email now.  Ask me how."