aboutsummaryrefslogtreecommitdiff
path: root/gdb/ch-valprint.c
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 /gdb/ch-valprint.c
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.
Diffstat (limited to 'gdb/ch-valprint.c')
-rw-r--r--gdb/ch-valprint.c4
1 files changed, 3 insertions, 1 deletions
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);