bug-gdb
[Top][All Lists]
Advanced

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

interpreting some gdb data.


From: Shane McDaniel
Subject: interpreting some gdb data.
Date: Mon, 7 Jan 2002 16:13:21 -0500

using gdb to stop at a certain point in my program I see the following

(gdb) frame
#0  complex<float> sqrt<float> () at PO.cpp:841
841                     returnXML += stmp;
(gdb) print stmp
$8 = {static npos = 0, static nilRep = Cannot access memory at address
0x17efd8
(gdb) print returnXML
$9 = (string &) @0x1572e8: {static npos = 0, static nilRep = Cannot access
memory at address 0x17efd8


both returnXML and stmp are of type std::string.

first off I don't understand why #0 is listed as complex<float>
sqrt<float>, or how this is derived from my source line.

secondly why can't I access the data of my two variables?

It seems sometimes I can access a strings data and other I can't, and I'm
unable to determine what decides this.

-shane



reply via email to

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