*BSD News Article 9923


Return to BSD News archive

Received: by minnie.vk1xwt.ampr.org with NNTP
	id AA6809 ; Fri, 15 Jan 93 10:36:02 EST
Newsgroups: comp.unix.bsd
Path: sserve!manuel.anu.edu.au!munnari.oz.au!uunet!gatech!usenet.ins.cwru.edu!agate!boulder!ucsu!rintintin.Colorado.EDU!galbrait
From: galbrait@rintintin.Colorado.EDU (GALBRAITH JOHN)
Subject: gdb/C++ problems
Message-ID: <1993Jan8.132605.22256@ucsu.Colorado.EDU>
Sender: news@ucsu.Colorado.EDU (USENET News System)
Nntp-Posting-Host: rintintin.colorado.edu
Organization: University of Colorado, Boulder
Date: Fri, 8 Jan 1993 13:26:05 GMT
Lines: 22

I am having problems using the GNU debugger with programs compiled
with g++.  Both programs are the stock 386BSD 0.1 distributions.  I
have tried remaking both, but I have not tried to upgrade either 
product.  gdb works fine with normal C programs.  With a C++ program,
however, gdb says :

Reading in symbols for bp.cc...Invalid symbol data: unrecognized type-code `t' at symtab pos 41.

Anybody know what could be wrong?

Also, in order to link xgdb, I had to remove a some stuff.  I removed 
the #include <X11/Xaw/AsciiSink.h> due to a syntax error that I could not
figure out, and remove the call
XawTextScrollToLine(source_text_widget, l, 10, 30;
because the the function is not in the library, so it would not link.  
However, this scroll bar is the one that lets you move around in your 
source code, so is kind of nice to have around.

What are you guys doing for debugging C++ programs?
 
thanks, John Galbraith
galbrait@rintintin.colorado.edu