From bf5b632df7ee9b664c00a02296b9cdcbea634e55 Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Wed, 14 Jul 1993 21:38:39 +0000 Subject: [PATCH] * ch-valprint.c (chill_val_print, case TYPE_CODE_STRING): Print address, not addr. * hppah-nat.c (store_inferior_registers): Don't print i in cases where we aren't using it. --- gdb/ChangeLog | 6 ++++++ gdb/ch-valprint.c | 4 +++- gdb/hppah-nat.c | 4 ++-- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1f17ac84067..cf3dc3df2c9 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,11 @@ Wed Jul 14 13:51:54 1993 Jim Kingdon (kingdon@lioth.cygnus.com) + * ch-valprint.c (chill_val_print, case TYPE_CODE_STRING): Print + address, not addr. + + * hppah-nat.c (store_inferior_registers): Don't print i in cases + where we aren't using it. + * a29k-tdep.c (get_saved_register): Fix typo. Wed Jul 14 09:45:52 1993 Doug Evans (dje@canuck.cygnus.com) diff --git a/gdb/ch-valprint.c b/gdb/ch-valprint.c index e7797589ecc..23891e88fcc 100644 --- a/gdb/ch-valprint.c +++ b/gdb/ch-valprint.c @@ -185,7 +185,9 @@ chill_val_print (type, valaddr, address, stream, format, deref_ref, recurse, } if (addressprint && format != 's') { - fprintf_filtered (stream, "H'%x ", addr); + /* This used to say `addr', which is unset at this point. + Is `address' what is meant? */ + fprintf_filtered (stream, "H'%x ", address); } i = TYPE_LENGTH (type); LA_PRINT_STRING (stream, valaddr, i, 0); diff --git a/gdb/hppah-nat.c b/gdb/hppah-nat.c index 138697b1dda..ce9fde97712 100644 --- a/gdb/hppah-nat.c +++ b/gdb/hppah-nat.c @@ -121,7 +121,7 @@ store_inferior_registers (regno) scratch, 0); if (errno != 0) { - sprintf (buf, "writing register number %d(%d)", regno, i); + sprintf (buf, "writing register number %d", regno); perror_with_name (buf); } } @@ -154,7 +154,7 @@ store_inferior_registers (regno) scratch, 0); if (errno != 0) { - sprintf (buf, "writing register number %d(%d)", regno, i); + sprintf (buf, "writing register number %d", regno); perror_with_name (buf); } } -- 2.30.2