Path: utzoo!attcan!uunet!cs.utexas.edu!hellgate.utah.edu!dog.ee.lbl.gov!ux5.lbl.gov!peterli From: peterli@ux5.lbl.gov Newsgroups: comp.lang.c++ Subject: Debugging C++ with dbx ... Message-ID: <7890@dog.ee.lbl.gov> Date: 5 Nov 90 21:50:16 GMT Sender: usenet@dog.ee.lbl.gov Reply-To: peterli@ux5.lbl.gov (Peter Li) Organization: Lawrence Berkeley Laboratory, Berkeley Lines: 25 X-Local-Date: Mon, 5 Nov 90 13:50:16 PST As a follow-up to my previous article asking for cheap or free debuggers for AT&T C++ 2.0 code, I decided to "hack" one up myself. The solution is to use the demangling tools provided by AT&T C++ program suite to demangle just the symbol table of an executable program compiled with "-g" flag. Afterwards, dbx will read the symbol table in as a normal C program, but all the nasty mangled names has been "normalized". (I told you it is a hack :-) So far, it has been tested on: 1. Sun and VAX 2. 4.3 BSD, Ultrix, and SunOS 4.0+. 3. AT&T C++ 2.0 It does not yet support COFF format executables. And you will need source code access to AT&T demangling tools, or have someone provide them. If anyone else is interested in testing or porting this set of programs, send me mail to the address below and I will send you a copy (about 70K of shar file). Thanks, Peter Li email: peterli@mis.ucsf.edu