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
I need to add that I compiled gdb from sources -- not from package. Also the easiest way to run Solaris 10 is to download Solaris VirtualBox appliance from oracle.com.
Could you possibly try gdb 7.3, or CVS gdb? Some changes were made to iconv configury that might possibly affect this.
No response in 10 years.