Hi Eric, Presumably, your string actually has that many characters in it.
I would suggest looking directly at the memory: (gdb) x/c 0x24340 ... then hit the "return" key to see successive characters Your C++ string class doesn't have any field named "length" so it probably uses null-terminated characters. > For refereence to my first post, this string should > have only "<", without those trailling chars. Well, either gdb is lying, or we are mis-interpreting its output, or your string really does all those characters in it. I recommend trying some different things, such as different data display commands in gdb, and perhaps adding some printf statements to the program (i know, icky) to see the data independently of gdb. Michael C _______________________________________________ Bug-gdb mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-gdb