Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!rice!sun-spots-request From: wohlenbe@enuxha.eas.asu.edu (Gregory S. Wohlenberg) Newsgroups: comp.sys.sun Subject: Debugging g++ programs with dbx Keywords: Miscellaneous Message-ID: <10162@brazos.Rice.edu> Date: 23 Jul 90 22:14:28 GMT Sender: root@rice.edu Organization: Sun-Spots Lines: 27 Approved: Sun-Spots@rice.edu X-Sun-Spots-Digest: Volume 9, Issue 277, message 9 Originator: spots@titan.rice.edu I am having a problem debugging with g++ on my machine (Sun SPARCstation running SunOS 4.0 with GNU g++ version 1.37.1). If I compile a program as follows: g++ -g0 test.cc -o test and then attempt to debug it as follows: dbx test I get the following response back: Reading symbolic information... dbx: internal error: Your executable file contains corrupt symbol information: The debugger expected to find char '=', but found char ' If I run "test" without dbx, it executes fine. It is a simple program that just prints a line of text to stdout. I thought that the g0 switch allowed limited debug using dbx. If anyone can shed any light on this situation, I would greatly appreciate it. (I intend to eventually use gdb+, but I'm still curious why I can't get dbx to work.) Thanks, Greg Wohlenberg wohlenbe@enuxha.eas.asu.edu