aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-02-24 23:58:32 +0000
committerAndrew Cagney <cagney@redhat.com>2003-02-24 23:58:32 +0000
commit7343d46ade7c7593f1de05d61ac05582e26828a8 (patch)
treea9166a391291d917a70287b8e314d39bc248fbb4 /gdb
parent49fa1dc29a207665fae2604a3297db9fb4751597 (diff)
downloadgdb-7343d46ade7c7593f1de05d61ac05582e26828a8.zip
gdb-7343d46ade7c7593f1de05d61ac05582e26828a8.tar.gz
gdb-7343d46ade7c7593f1de05d61ac05582e26828a8.tar.bz2
2003-02-24 Andrew Cagney <cagney@redhat.com>
* infptrace.c (udot_info): Change type of udot_off to long. Use paddr when printing udot_off's value.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/infptrace.c7
2 files changed, 9 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 1aedd24..e2a7e52 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2003-02-24 Andrew Cagney <cagney@redhat.com>
+
+ * infptrace.c (udot_info): Change type of udot_off to long. Use
+ paddr when printing udot_off's value.
+
2003-02-24 David Carlton <carlton@math.stanford.edu>
* symtab.c (make_symbol_overload_list): Only read in partial
diff --git a/gdb/infptrace.c b/gdb/infptrace.c
index 601e157..e75ea4c 100644
--- a/gdb/infptrace.c
+++ b/gdb/infptrace.c
@@ -629,7 +629,7 @@ static void
udot_info (char *dummy1, int dummy2)
{
#if defined (KERNEL_U_SIZE)
- int udot_off; /* Offset into user struct */
+ long udot_off; /* Offset into user struct */
int udot_val; /* Value from user struct at udot_off */
char mess[128]; /* For messages */
#endif
@@ -657,12 +657,13 @@ udot_info (char *dummy1, int dummy2)
{
printf_filtered ("\n");
}
- printf_filtered ("%04x:", udot_off);
+ printf_filtered ("%s:", paddr (udot_off));
}
udot_val = ptrace (PT_READ_U, PIDGET (inferior_ptid), (PTRACE_ARG3_TYPE) udot_off, 0);
if (errno != 0)
{
- sprintf (mess, "\nreading user struct at offset 0x%x", udot_off);
+ sprintf (mess, "\nreading user struct at offset 0x%s",
+ paddr_nz (udot_off));
perror_with_name (mess);
}
/* Avoid using nonportable (?) "*" in print specs */