[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Print std::string.
From: |
ystary |
Subject: |
Print std::string. |
Date: |
Thu, 29 Jul 2010 10:00:58 -0700 (PDT) |
Hi,
How can i see the string content in a std::string variable using
a core file : gdb myprogram mycore
(gdb) print stdstringvariable
$1 = { static npos = 18446744073709551615, _M_dataplus =
(<std::allocator<char>>= {<__gnu_cxx::new_allocator<char>> = {<No data
fields>}, <No data fields>}, _M_p = "\270\254#\264\252*"}}
(gdb)_
i know that the content of the variable is not "\270\254#\264\252*"
Thanks
--
View this message in context:
http://old.nabble.com/Print-std%3A%3Astring.-tp29298314p29298314.html
Sent from the Gnu - gdb - General mailing list archive at Nabble.com.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Print std::string.,
ystary <=