aboutsummaryrefslogtreecommitdiff
path: root/gdb
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
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')
-rw-r--r--gdb/ChangeLog13
-rw-r--r--gdb/utils.c4
2 files changed, 16 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 1bcb2a7..fdcd4e5 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,8 @@
Fri May 1 01:53:26 1992 John Gilmore (gnu at cygnus.com)
+ * utils.c (printchar): Print 0x7F and 0x80-0x9F in \nnn notation
+ even when printing 8-bit characters.
+
* gdbtypes.c (make_{reference,pointer,function}_type): New
functions which handle overwriting of forward-referenced types
for stabs file reading.
@@ -41,6 +44,16 @@ Wed Apr 29 15:26:51 1992 Per Bothner (bothner@rtl.cygnus.com)
variables. Instead, place all shared variables in a
stack-allocated structure, and pass around its address.
+Wed Apr 29 23:39:38 1992 John Gilmore (gnu at cygnus.com)
+
+ * m68k-pinsn.c (print_insn_arg): When we really want sign
+ extension, use "signed char". (Doesn't work on non-ANSI
+ compilers with char unsigned by default. FIXME.)
+
+Mon Apr 27 20:06:14 1992 John Gilmore (gnu at cygnus.com)
+
+ * munch: Add sort -u to avoid duplications.
+
Fri Apr 24 07:41:19 1992 Stu Grossman (grossman at cygnus.com)
* Makefile.in (make-proto-gdb-1): 1st cut at packaging
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':