[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: c++ strings with gdb??
From: |
Dave |
Subject: |
Re: c++ strings with gdb?? |
Date: |
17 May 2002 08:01:59 -0700 |
address@hidden (Michael Elizabeth Chastain) wrote in message
news:<address@hidden>...
> $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-)
- c++ strings with gdb??, Dave, 2002/05/15
- Re: c++ strings with gdb??, Michael Elizabeth Chastain, 2002/05/15
- Re: c++ strings with gdb??, Michael Elizabeth Chastain, 2002/05/15
- Re: c++ strings with gdb??, Michael Elizabeth Chastain, 2002/05/16
- Re: c++ strings with gdb??, Michael Elizabeth Chastain, 2002/05/17
- Re: c++ strings with gdb??, Michael Elizabeth Chastain, 2002/05/26