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

_______________________________________________
Bug-gdb mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gdb

Reply via email to