diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-06-02 15:37:55 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-06-02 15:37:55 +0000 |
commit | df94e18aa838fc0381dbe052c6dc99e6f18ee7a7 (patch) | |
tree | bf3a7e3334aeda2c3fb071af52c85533d7dcd843 | |
parent | 20e130e9c04ebc2370c28f721832c424b3117eda (diff) | |
download | gdb-df94e18aa838fc0381dbe052c6dc99e6f18ee7a7.zip gdb-df94e18aa838fc0381dbe052c6dc99e6f18ee7a7.tar.gz gdb-df94e18aa838fc0381dbe052c6dc99e6f18ee7a7.tar.bz2 |
Output tweaks.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/z8k-tdep.c | 21 |
2 files changed, 17 insertions, 10 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a5b1463..14c3786 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2002-06-02 Andrew Cagney <ac131313@redhat.com> + + 2002-05-07 Christian Groessler <chris@groessler.org> + * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64 + bit register contents for little endian hosts. + 2002-06-01 Andrew Cagney <ac131313@redhat.com> * MAINTAINERS: Mention that any `HP/UX reader' can be changed by diff --git a/gdb/z8k-tdep.c b/gdb/z8k-tdep.c index 572a878..789fe2e 100644 --- a/gdb/z8k-tdep.c +++ b/gdb/z8k-tdep.c @@ -325,25 +325,26 @@ z8k_print_register_hook (int regno) { if ((regno & 1) == 0 && regno < 16) { - unsigned short l[2]; + unsigned char l[4]; - frame_register_read (selected_frame, regno, (char *) (l + 0)); - frame_register_read (selected_frame, regno + 1, (char *) (l + 1)); + frame_register_read (selected_frame, regno, l + 0); + frame_register_read (selected_frame, regno + 1, l + 2); printf_unfiltered ("\t"); - printf_unfiltered ("%04x%04x", l[0], l[1]); + printf_unfiltered ("0x%02x%02x%02x%02x", l[0], l[1], l[2], l[3]); } if ((regno & 3) == 0 && regno < 16) { - unsigned short l[4]; + unsigned char l[8]; - frame_register_read (selected_frame, regno, (char *) (l + 0)); - frame_register_read (selected_frame, regno + 1, (char *) (l + 1)); - frame_register_read (selected_frame, regno + 2, (char *) (l + 2)); - frame_register_read (selected_frame, regno + 3, (char *) (l + 3)); + frame_register_read (selected_frame, regno, l + 0); + frame_register_read (selected_frame, regno + 1, l + 2); + frame_register_read (selected_frame, regno + 2, l + 4); + frame_register_read (selected_frame, regno + 3, l + 6); printf_unfiltered ("\t"); - printf_unfiltered ("%04x%04x%04x%04x", l[0], l[1], l[2], l[3]); + printf_unfiltered ("0x%02x%02x%02x%02x%02x%02x%02x%02x", + l[0], l[1], l[2], l[3], l[4], l[5], l[6], l[7]); } if (regno == 15) { |