Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: sabol@alderaan.gsfc.nasa.gov (Edward J. Sabol)
Subject: Help! gdb 4.16 and Digital Unix 4.0B...
Date: 1997/11/13	[thread overview]
Message-ID: <h4u3dga1ne.fsf@dbsrv.gsfc.nasa.gov> (raw)


Hello,

We recently upgraded our DEC Alpha boxes to Digital Unix 4.0B. After we did
this, gdb, dbx, ladebug all started causing kernel crashes when you stepped
through code. DEC said to turn off the kernel KDEBUG option which we did.
That stopped the crashes, but gdb stopped working. If you set a breakpoint on
some line of code, it wouldn't break, and it would just zip right by the
breakpoint. (See below for a transcript.) Later we learned of some DEC
patches for Digital Unix 4.0B that were supposed to fix problems with
debuggers, among other things, so we installed those. dbx and ladebug now
work just fine, but gdb is still non-functional, the same as before. I've
heard from other people who have told me that they have gdb working on their
Digital Unix 4.0B boxes. Someone even e-mailed me their gdb binary, but it
didn't work on our system either. We've recompiled both gcc and gdb multiple
times to no avail. We even tried re-enabling the KDEBUG option after
installing the latest patches, but that had no effect. DEC Tech Support
refused to help, saying only that DEC doesn't support gdb. Can anyone help???
We all prefer using gdb as our debugger and don't want to switch.

`uname -a`
   OSF1 xxxx.gsfc.nasa.gov V4.0 564 alpha

gcc 2.7.2.3:
   % mkdir gcc-2.7.2.3/alpha-dec-osf4.0; cd gcc-2.7.2.3/alpha-dec-osf4.0/
   % ../configure --prefix=/usr/contrib --exec-prefix=/usr/contrib/osf-4.0
     # I've tried both --with-stabs and without. dbx works fine with `gcc -g`
     # output when gcc is compiled without stabs.
   % gmake install

gdb 4.16:
   % mkdir gdb-4.16/alpha-dec-osf4.0; cd gdb-4.16/alpha-dec-osf4.0/
   % ../configure --prefix=/usr/contrib --exec-prefix=/usr/contrib/osf-4.0
   % gmake all
   % gmake install
     # One of the few things I haven't tried is compiling gdb with gcc; I think
     # it builds using cc by default.

Example:

   % cat test_gdb.c
   #include <stdio.h>

   int main (void)
   {
        printf("This is a test.\n");
        return 0;
   }
   % gcc -pedantic -Wall -g -o test_gdb test_gdb.c
   %  gdb ./test_gdb
   GDB is free software and you are welcome to distribute copies of it
    under certain conditions; type "show copying" to see the conditions.
   There is absolutely no warranty for GDB; type "show warranty" for details.
   GDB 4.16 (alpha-dec-osf4.0), Copyright 1996 Free Software Foundation, Inc...
   (gdb) br 5
   Breakpoint 1 at 0x120001178: file test_gdb.c, line 5.
   (gdb) br 6
   Breakpoint 2 at 0x120001190: file test_gdb.c, line 6.
   (gdb) br 7
   Breakpoint 3 at 0x120001198: file test_gdb.c, line 7.
   (gdb) run
   Starting program: /Home/home2/sabol/work/testing/./test_gdb 
   This is a test.

   Program exited normally.
   You can't do that without a process to debug
   (gdb)

Any ideas? Your help would be much appreciated!

Thanks,
Ed



                 reply	other threads:[~1997-11-13  5:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

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