🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #8800

Trouble setting breakpoints in g++ member fn's

#8800
From: David A. Yon
Date: Fri, 11 Dec 1992 13:36
31 lines
1859 bytes
Hi,

	I'm running g++ 2.2.2 and gdb 4.7 under SCO ODT 2.0 on a Gateway
2000 486/33 with 16 meg of memory.  I've built a C++ program, omitting the
-O flag on all passes and specifying the -g flag on all passes.

	I'm running gdb using emacs "M-x gdb".   When I try to set a breakpoint
in a member function, for example: "break configwindow::createWindow", I get the
error: "class configwindow do not implement the method "createWindow"".  The
message then goes on to recommend that I try typing 'configwindow::createWindow<TAB>.
I try that (using both just <TAB> and C-c <TAB>), and I get "[no match]" on the
latter.  I've also tried forcing "language" to be "c++".

	The declaration of the method in question is as follows:

class configwindow : public shellwdw {
..
	public:
		static class configwindow *configwindow::createWindow(Widget parent);
..
};

	Am I missing something fundamental here?  It looks as though symbols aren't
present in the executable, but I know that I've done "-g" throughout.  Is there a
way to verify that I've gotten the appropriate symbolic info in the executable?

	Any help appreciated...

--
David Yon
yon@caboom.enet.dec.com <--- use this address
Technical Details
Message-ID: <1992Dec11.133649.25642@e2big.mko.dec.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!smltlk.cbm.dec.com!yon

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f5053,6aa6cb355fe592d5,start
X-Google-Attributes: gidf5053,public
X-Google-ArrivalTime: 1992-12-11 09:32:07 PST
Newsgroups: gnu.gdb.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!smltlk.cbm.dec.com!yon
From: yon@smltlk.cbm.dec.com (David A. Yon)
Subject: Trouble setting breakpoints in g++ member fn's
Message-ID: <1992Dec11.133649.25642@e2big.mko.dec.com>
Sender: gnulists@ai.mit.edu
Reply-To: yon@cbm.dec.com
Organization: Digital Equipment Corporation
Distribution: gnu
Date: Fri, 11 Dec 1992 13:36:49 GMT
Approved: bug-gdb@prep.ai.mit.edu
Lines: 33