aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-07-14 21:38:39 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-07-14 21:38:39 +0000
commitbf5b632df7ee9b664c00a02296b9cdcbea634e55 (patch)
tree0bb501b87d44e5016b704017f17a11f1132147e3
parentea7f0a9ff347098fdc13feb206871f9203e812cc (diff)
downloadgdb-bf5b632df7ee9b664c00a02296b9cdcbea634e55.zip
gdb-bf5b632df7ee9b664c00a02296b9cdcbea634e55.tar.gz
gdb-bf5b632df7ee9b664c00a02296b9cdcbea634e55.tar.bz2
* 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.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/ch-valprint.c4
-rw-r--r--gdb/hppah-nat.c4
3 files changed, 11 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 1f17ac8..cf3dc3d 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 e779758..23891e8 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 138697b..ce9fde9 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);
}
}