This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/12461] New: gdb unable to print char* values inSolaris-10/i386


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]