🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #8782

Displaying parts of a variable

#8782
From: Mark Harrison
Date: Mon, 07 Dec 1992 22:00
24 lines
1236 bytes
I have a C++ String class (actually from the USL std components),
which I would like to display.  When I do display it, it shows
the pointer to the actual data...   The pointer d points to the
actual character data.

	String s;

	s = {
	  d = 0x218c8
	}

1.  Is there a way to call the insertor from within gdb (i.e. cout<<s)?

2.  Is there a command similar to print or display that will let me
    force or specify the data type?

3.  Any other ways of easily looking at the data?

4.  I'm using xxgdb patch level 3.  Are there any more current versions?

Thanks in advance,
Mark.
-- 
Mark Harrison, mharriso@dsccc.com
Technical Details
Message-ID: <1992Dec7.220054.24283@digi.lonestar.org>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!digi.lonestar.ORG!mharriso

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f5053,c9df24d7b886f755,start
X-Google-Attributes: gidf5053,public
X-Google-ArrivalTime: 1992-12-07 20:32:30 PST
Newsgroups: gnu.gdb.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!digi.lonestar.ORG!mharriso
From: mharriso@digi.lonestar.ORG (Mark Harrison)
Subject: Displaying parts of a variable
Message-ID: <1992Dec7.220054.24283@digi.lonestar.org>
Sender: gnulists@ai.mit.edu
Organization: DSC Communications Corp, Plano, TX
Distribution: gnu
Date: Mon, 7 Dec 1992 22:00:54 GMT
Approved: bug-gdb@prep.ai.mit.edu
Lines: 25