This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: What does "incomplete sequence" mean
- From: Tom Tromey <tromey at redhat dot com>
- To: "frank ernest" <doark at mail dot com>
- Cc: gdb at sourceware dot org
- Date: Fri, 09 May 2014 10:54:38 -0600
- Subject: Re: What does "incomplete sequence" mean
- Authentication-results: sourceware.org; auth=none
- References: <20140502203252 dot 229910 at gmx dot com>
>>>>> "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