🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #1947

Re: c++ strings with gdb??

#1947
From: Dave
Date: Fri, 17 May 2002 15:01
32 lines
2599 bytes
mec@shout.net (Michael Elizabeth Chastain) wrote in message news:<200205151729.g4FHTEi21529@duracef.shout.net>...
> $10 = {static npos = 4294967295, static nilRep = {len = 0, res = 0,
>   ref = 1,
>       selfish = false}, dat = 0x24340 "<A HREF=\"http:/"}
> 
> This looks reasonable.  gdb shows "char *" pointers as a null-terminated
> string.
> 

But..., but why the dat field has so many extra characters? I know gdb
can show the terminating '\0' char for C, but ..., but why does it
show that many characters for this C++ string? Where do these extra
chars come from? For refereence to my first post, this string should
have only "<", without those trailling chars.

> > BTW, why are there so many spam messages in this group, such as
> > "making money from home" or something like this?  And there are also
> > many un-displayable characters on my screen for many messages. It is
> > just weird for me. ... Did I find the right group for dicussing gnu
> > gdb?...
> 
> This is the right group.
> 
> It takes work to anti-spam a group, especially when the group accepts
> submissions from non-members.  And we are all volunteers, and the spam
> filters are not perfect.
> 
> Michael C

Wow, sorry. I did not realize my curiosity triggered this many
arguments on this issue. Thanks you guys for still keeping this group
alive. Otherwise, I don't know where I can post my questions. 8-)
Technical Details
Message-ID: <99f6e996.0205170701.3e67b45f@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!cpk-news-hub1.bbnplanet.com!news.gtei.net!nntp.abs.net!uunet!dca.uu.net!ash.uu.net!spool0901.news.uu.net!wendy-fate.uu.net!not-for-mail
References: <200205151729.g4FHTEi21529@duracef.shout.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f5053,3b612bd1c1e2d578
X-Google-Attributes: gidf5053,public
X-Google-ArrivalTime: 2002-05-17 08:02:05 PST
x-uunet-gateway: mr0.ash.ops.us.uu.net from bug-gdb to gnu.gdb.bug; Fri, 17 May 2002 15:02:03 GMT
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!cpk-news-hub1.bbnplanet.com!news.gtei.net!nntp.abs.net!uunet!dca.uu.net!ash.uu.net!spool0901.news.uu.net!wendy-fate.uu.net!not-for-mail
From: davis_eric@yahoo.com (Dave)
Subject: Re: c++ strings with gdb??
Date: 17 May 2002 08:01:59 -0700
Organization: http://groups.google.com/
Message-ID: <99f6e996.0205170701.3e67b45f@posting.google.com>
References: <200205151729.g4FHTEi21529@duracef.shout.net>
NNTP-Posting-Host: 129.97.58.10
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1021647720 24668 127.0.0.1 (17 May 2002 15:02:00 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: 17 May 2002 15:02:00 GMT
Approved: bug-gdb-request@mail.gnu.org
Newsgroups: gnu.gdb.bug
Sender: bug-gdb-request@mail.gnu.org
Lines: 32