🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.help
Article #877

g++ with dbx (Solaris)

#877
From: David Cogen
Date: Fri, 12 Jan 1996 18:55
21 lines
901 bytes
Requirement: To use Sun's dbx debugger on a program compiled with g++.

Reason: Because dbx provides essential runtime pointer checking facilities
which gdb doesn't provide.

System: Sun Sparcstation, gcc 2.7.0, SunOS 5.4 (Solaris)


I compile the program as follows:

gcc -g test.cc -lg++

In place of -g I have also tried all the others: -gstabs, etc.

But when I run the executable with dbx, dbx doesn't find any debug info.


Please tell me there's a way to do this! 


-- David Cogen
Technical Details
Message-ID: <9601121353.AA09421@LL.MIT.EDU>
Path: arc1-ca.pugleaf.net!ll.mit.edu!cogen
References: <DL2DoK.4pw@ipmce.su>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!ll.mit.edu!cogen
From: cogen@ll.mit.edu (David Cogen)
Newsgroups: gnu.g++.help,comp.lang.c++
Subject: g++ with dbx (Solaris)
Date: 12 Jan 1996 13:55:11 -0500
Organization: Gatewayed from the GNU Project mailing list help-g++@prep.ai.mit.edu
Sender: daemon@cis.ohio-state.edu
Distribution: world
Message-ID: <9601121353.AA09421@LL.MIT.EDU>
References: <DL2DoK.4pw@ipmce.su>