This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/12461] New: gdb unable to print char* values inSolaris-10/i386
- From: "yuri at tsoft dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Thu, 3 Feb 2011 21:44:48 +0000
- Subject: [Bug c++/12461] New: gdb unable to print char* values inSolaris-10/i386
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=12461
Summary: gdb unable to print char* values in Solaris-10/i386
Product: gdb
Version: 7.2
Status: NEW
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned@sourceware.org
ReportedBy: yuri@tsoft.com
I can't print in gdb the value of std::string: normally in linux it prints ok,
but on Solaris I see this:
> p var._M_dataplus._M_p
> $14 = 0x9e7120c <error reading variable>
But when I try to read the first part of it as pointer it prints value
corresponding to characters:
> p *(int**)var._M_dataplus._M_p
> $16 = (int *) 0x74706f2f
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.