This is the mail archive of the gdb@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]

Re: What does "incomplete sequence" mean


>>>>> "David" == frank ernest <doark@mail.com> writes:

David> I'm getting a single report of
David> <code>
David> $4 = {__buffer = 0xc1f1c0 "\200", <incomplete sequence \302>, 

David> I have yet to apply the code to my program and am wondering if
David> this is a bad sign. I don't get an "incomplete sequence" message from
David> the first struct in the array.

It means that gdb is trying to decode the bytes of the string according
to the "target-charset" setting, and the string ends with a sequence
that is incomplete according to the charset.

You probably have UTF-8 as the target-charset, and in UTF-8, \302 is the
start of a 2-byte sequence, and so should not appear at the end of the
string.

Tom


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