ddd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

structures with std::string aren't displayed


From: Mike Reed
Subject: structures with std::string aren't displayed
Date: Thu, 26 Sep 2002 18:40:38 +0100

Hi,

I have:
    gdb 5.2-2 (red hat)
    ddd 3.3
    gcc 3.2 (compiled and linked programs with -ggdb3)

I have a pointer to a structure that contains a std::string.  When I try
to use ddd to "display" the contents of the structure I get an error:

(gdb) {_vptr.Element = 0x8051570, x = 4, y = 0, str = {static npos =
Cannot access memory at address 0x8aa3af0
Disabling display 2 to avoid infinite recursion.

and the display of the structure is disabled.  If I remove the
std::string it displays it.  Is there any way I can get this structure
to display with a std::string in it?

I also get problems trying to display nested classes.  if B is a class
declared in A I get the error:

(gdb) can't find class named `A::B', as given by C++ RTTI
Disabling display 2 to avoid infinite recursion.

TIA

Mike.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]