diff options
author | Jim Blandy <jimb@codesourcery.com> | 2001-12-19 06:29:18 +0000 |
---|---|---|
committer | Jim Blandy <jimb@codesourcery.com> | 2001-12-19 06:29:18 +0000 |
commit | ae23c7a3692234fd902e1394f01f8c366d299b57 (patch) | |
tree | e64723114f03a800aec5041f31b18f6a8062e353 /gdb/c-lang.c | |
parent | 4dd67f29188d3bfefaebff926310e40b0a710bc8 (diff) | |
download | gdb-ae23c7a3692234fd902e1394f01f8c366d299b57.zip gdb-ae23c7a3692234fd902e1394f01f8c366d299b57.tar.gz gdb-ae23c7a3692234fd902e1394f01f8c366d299b57.tar.bz2 |
* c-lang.c (c_emit_char): Print ASCII 11 as '\v', to match
ISO C, and our parser. Print ASCII 0 as '\0', since that's what
people are used to seeing.
Diffstat (limited to 'gdb/c-lang.c')
-rw-r--r-- | gdb/c-lang.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/c-lang.c b/gdb/c-lang.c index c7cfd29..9e92d7e 100644 --- a/gdb/c-lang.c +++ b/gdb/c-lang.c @@ -67,12 +67,18 @@ c_emit_char (register int c, struct ui_file *stream, int quoter) case '\r': fputs_filtered ("\\r", stream); break; + case '\013': + fputs_filtered ("\\v", stream); + break; case '\033': fputs_filtered ("\\e", stream); break; case '\007': fputs_filtered ("\\a", stream); break; + case '\0': + fputs_filtered ("\\0", stream); + break; default: fprintf_filtered (stream, "\\%.3o", (unsigned int) c); break; |