🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #16

Debugging C++ programs

#16
From: bharat kumar
Date: Wed, 28 Oct 1992 14:49
18 lines
878 bytes
Hi,

  I want to use gdb to debug my C++ program (1.C). I am giving the
following commands:

  CC -g 1.C
  gdb a.out

When I try the "list" command inside gdb, it gives an error:

Reading in symbols for 1.C...Invalid symbol data: unrecognized
type-code `c' at symtab pos 33.


Could you tell me if it's something with gdb, or that I am messing up?

Thanks,
-Bharat
Technical Details
Message-ID: <9210281449.AA21609@golf.cis.ohio-state.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!network.ucsd.edu!swrinde!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!news.cis.ohio-state.edu!kumar-b

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!network.ucsd.edu!swrinde!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!news.cis.ohio-state.edu!kumar-b
From: kumar-b@news.cis.ohio-state.edu (bharat kumar)
Newsgroups: gnu.gdb.bug
Subject: Debugging C++ programs
Message-ID: <9210281449.AA21609@golf.cis.ohio-state.edu>
Date: 28 Oct 92 14:49:09 GMT
Article-I.D.: golf.9210281449.AA21609
Sender: gnulists@ai.mit.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 18
Approved: bug-gdb@prep.ai.mit.edu