Hi. I use gdb 4.11, gcc 2.5.8, linux 1.1.0 to develop software
using the GNU lib g++ String library. Generally everything's fine, but
when I want to look at the value of String using gdb such as:
(gdb) print nuc
$1 = <incomplete type>
(gdb) print nuc.chars()
Structure has no component named chars.
On a sun, using the same gdb
(gdb) print nuc
$1 = {rep = 0x2bf90}
(gdb) print nuc.chars()
$2 = 0x2bf94 "ACGT"
My programs are compiled and linked using the gcc -g option, and
nearly everything else in the two gdb's runs the same. This one sticking
point has me puzzled.
--
O~_ ______ David Konerding (University of California, Santa Cruz)