aboutsummaryrefslogtreecommitdiff
path: root/gdb/utils.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1992-05-01 09:39:30 +0000
committerJohn Gilmore <gnu@cygnus>1992-05-01 09:39:30 +0000
commitfcdb113e5707f165e91cd75cb3dffa78c4f043ca (patch)
treef62d9406b2d44a7a89491655d28bee1533e61f63 /gdb/utils.c
parentea1549b346e7014425e5ce74943ca3e2f81097e2 (diff)
downloadgdb-fcdb113e5707f165e91cd75cb3dffa78c4f043ca.zip
gdb-fcdb113e5707f165e91cd75cb3dffa78c4f043ca.tar.gz
gdb-fcdb113e5707f165e91cd75cb3dffa78c4f043ca.tar.bz2
* utils.c (printchar): Print 0x7F and 0x80-0x9F in \nnn notation
even when printing 8-bit characters.
Diffstat (limited to 'gdb/utils.c')
-rw-r--r--gdb/utils.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/utils.c b/gdb/utils.c
index 554cb6a..14ff2fc 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -815,7 +815,9 @@ printchar (c, stream, quoter)
int quoter;
{
- if (c < 040 || (sevenbit_strings && c >= 0177)) {
+ if ( c < 0x20 || /* Low control chars */
+ (c >= 0x7F && c < 0xA0) || /* DEL, High controls */
+ (sevenbit_strings && c >= 0x80)) { /* high order bit set */
switch (c)
{
case '\n':