public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/17357] New: Unable to see stl types content
@ 2014-09-08 8:55 flamaros.xavier at gmail dot com
2014-09-08 19:12 ` [Bug c++/17357] " keiths at redhat dot com
0 siblings, 1 reply; 2+ messages in thread
From: flamaros.xavier at gmail dot com @ 2014-09-08 8:55 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=17357
Bug ID: 17357
Summary: Unable to see stl types content
Product: gdb
Version: unknown
Status: NEW
Severity: normal
Priority: P2
Component: c++
Assignee: unassigned at sourceware dot org
Reporter: flamaros.xavier at gmail dot com
I don't know much about the environment that can cause this issue, cause I am
using gdb throw QtCreator, I already fill them a bug. As they comment it, issue
seems coming from gdb.
Please notice I have put some logs on their bugtracker that might help you.
Here is the link to the original bug :
https://bugreports.qt-project.org/browse/QTCREATORBUG-11290
If it's not enough please tell me what are information you need, I'll to my
best to see this bug fixed.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/17357] Unable to see stl types content
2014-09-08 8:55 [Bug c++/17357] New: Unable to see stl types content flamaros.xavier at gmail dot com
@ 2014-09-08 19:12 ` keiths at redhat dot com
0 siblings, 0 replies; 2+ messages in thread
From: keiths at redhat dot com @ 2014-09-08 19:12 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=17357
Keith Seitz <keiths at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |keiths at redhat dot com
--- Comment #1 from Keith Seitz <keiths at redhat dot com> ---
I have no trouble printing STL types on my Fedora 20 box using
"GNU gdb (GDB) 7.8.50.20140904-cvs" (~current HEAD) with the STL printers
provided by libstdc++:
$ cat ~/tmp/stltest.cc
#include <iostream>
#include <string>
using namespace std;
void func() {
string s("1234");
cout << s.data() << endl;
}
int main() {
func();
return 0;
}
$ g++ -g ~/tmp/stltest.cc -o ~/tmp/stltest
$ ./gdb -q -D data-directory ~/tmp/stltest
Reading symbols from /home/keiths/tmp/17164...done.
(gdb) start
Temporary breakpoint 1 at 0x400bc9: file /home/keiths/tmp/17164.cc, line 11.
Starting program: /home/keiths/tmp/17164
Temporary breakpoint 1, main () at /home/keiths/tmp/17164.cc:11
11 func();
(gdb) s
func () at /home/keiths/tmp/17164.cc:6
6 string s("1234"); // length matters
(gdb) n
7 cout << s.data() << endl;
(gdb) p s
$1 = "1234"
(gdb) ptype s
type = std::string
I suspect that if this is not working for you under QtCreator, and the
QtCreator developers say that QtCreator is working, you have a system problem
such as out-of-sync (or non-existant) pretty-printers.
Please provide (using *same* gdb that QtCreator is using):
output of "show version"
output of "show configuration"
output of session showing problems OUTSIDE QtCreator
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-09-08 19:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-08 8:55 [Bug c++/17357] New: Unable to see stl types content flamaros.xavier at gmail dot com
2014-09-08 19:12 ` [Bug c++/17357] " keiths at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).