*BSD News Article 63349


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.OZ.AU!spool.mu.edu!howland.reston.ans.net!gatech!newsfeed.internetmci.com!news.mathworks.com!fu-berlin.de!news.belwue.de!news.uni-stuttgart.de!rz.uni-karlsruhe.de!i41fs1!frueauf
From: frueauf@.ira.uka.de (Thorsten Frueauf)
Newsgroups: comp.unix.bsd.netbsd.misc
Subject: Re: Which debugger/GDB-frontend for NetBSD?
Date: 29 Feb 1996 13:00:12 GMT
Organization: IPD, University of Karlsruhe, FRG
Lines: 121
Sender: frueauf@i41fs1 (Thorsten Frueauf)
Message-ID: <4h480s$6kh@nz12.rz.uni-karlsruhe.de>
References: <4h46hr$gv5@news.rhrz.uni-bonn.de>
NNTP-Posting-Host: i41fs1.ira.uka.de
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-newsreader: xrn 8.02-beta-1

Hello!

In article <4h46hr$gv5@news.rhrz.uni-bonn.de>, Roland Weigelt <rweigelt@phop5.physik.uni-bonn.de> writes:
  
|> The version 1.08 of XXGDB I tried didn't compile without some changes in
|> the source code; but I'm not sure wether I did the right things, because
|> sometimes XXGDB crashes when showing the contents of a variable.

I did the following patches to xxgdb-1.11.tar.gz:

*** ./Imakefile-orig	Thu Mar 23 23:49:32 1995
--- ./Imakefile	Mon Sep  4 01:47:20 1995
***************
*** 50,55 ****
--- 50,59 ----
  DEFINES = -DSYSV $(DEFGDB)
  #endif
  
+ #ifdef NetBSDArchitecture
+ DEFINES = $(DEFGDB) 
+ #endif
+ 
  mallocc = #malloc.c
  malloco = #malloc.o
  
*** ./global.h-orig	Wed Nov 16 03:09:55 1994
--- ./global.h	Mon Sep  4 01:18:03 1995
***************
*** 68,80 ****
  #define alloca __builtin_alloca
  #endif
  
  #ifndef __alpha
  #ifndef MAXPATHLEN
  #define MAXPATHLEN 1024
  #endif
  #endif
- 
- #include "defs.h"
  
  #if defined(SYSV) && !defined(MAX)
  #define MAX(a,b)	((a)>(b)?(a):(b))
--- 68,80 ----
  #define alloca __builtin_alloca
  #endif
  
+ #include "defs.h"
+ 
  #ifndef __alpha
  #ifndef MAXPATHLEN
  #define MAXPATHLEN 1024
  #endif
  #endif
  
  #if defined(SYSV) && !defined(MAX)
  #define MAX(a,b)	((a)>(b)?(a):(b))
*** ./command.c-orig	Wed Nov 23 01:27:05 1994
--- ./command.c	Mon Sep  4 01:22:45 1995
***************
*** 383,389 ****
      XtPointer client_data;
      XtPointer call_data;
  {
! #ifdef SYSV 
      int status;
  #else
      union wait status;
--- 383,389 ----
      XtPointer client_data;
      XtPointer call_data;
  {
! #if defined(SYSV) || defined(__NetBSD__)
      int status;
  #else
      union wait status;
*** ./signals.c-orig	Thu Nov 17 04:49:32 1994
--- ./signals.c	Mon Sep  4 01:26:24 1995
***************
*** 93,99 ****
  static void quit_handler(int sig)
  {
  	int pid;
! #ifdef SYSV 
      int status;
  #else
      union wait status;
--- 93,99 ----
  static void quit_handler(int sig)
  {
  	int pid;
! #if defined(SYSV) || defined(__NetBSD__)
      int status;
  #else
      union wait status;
*** ./calldbx.c-orig	Tue Dec  6 02:21:36 1994
--- ./calldbx.c	Mon Sep  4 01:52:12 1995
***************
*** 75,81 ****
--- 75,86 ----
  #include <fcntl.h>
  #include "global.h"
  #if !(defined(OLDSUNOS) || defined(BSD))
+ #if defined(__NetBSD__)
+ #include <sys/ioctl.h>
+ #include <sys/ioctl_compat.h>
+ #else
  #include <termio.h>
+ #endif
  #else
  #include <sgtty.h>
  #endif

I run happily with them, but I don't know if they cover all things
though.

Greets
-- 

   Name  : Thorsten Frueauf            Milano@irc cri@onaliM       //
   E-Mail: s_frueau@ira.uka.de oder ukfy@rz.uni-karlsruhe.de    \ //
   WWW   : http://wwwipd.ira.uka.de/~frueauf                    \X/