From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,c5841c3496f45a4c,start X-Google-Attributes: gidfee84,public From: sabol@alderaan.gsfc.nasa.gov (Edward J. Sabol) Subject: Help! gdb 4.16 and Digital Unix 4.0B... Date: 1997/11/13 Message-ID: #1/1 X-Deja-AN: 289336807 Mail-Copies-To: sabol@alderaan.gsfc.nasa.gov Organization: NASA Goddard Space Flight Center -- Greenbelt, Maryland USA Newsgroups: comp.unix.osf.osf1 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 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