This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Sevenbit-strings only partially respected?
- From: Vladimir Prus <ghost at cs dot msu dot su>
- To: gdb at sourceware dot org
- Date: Sat, 9 Oct 2010 23:26:35 +0400
- Subject: Sevenbit-strings only partially respected?
I've run into a situation where setting 'print sevenbit-strings' of off still
does not prevent GDB from escaping some characters. Specifically,
consider the character 0xD0, and this bit in printchar:
if (c < 0x20 || /* Low control chars */
(c >= 0x7F && c < 0xA0) || /* DEL, High controls */
(sevenbit_strings && c >= 0x80))
{ /* high order bit set */
Apparently, the second condition fires and causes 0xD0 to be quoted. Is
this expected behaviour?
- Volodya