aboutsummaryrefslogtreecommitdiff
path: root/gdb/z8k-tdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/z8k-tdep.c')
-rw-r--r--gdb/z8k-tdep.c23
1 files changed, 10 insertions, 13 deletions
diff --git a/gdb/z8k-tdep.c b/gdb/z8k-tdep.c
index 622cbc0..572a878 100644
--- a/gdb/z8k-tdep.c
+++ b/gdb/z8k-tdep.c
@@ -1,6 +1,7 @@
/* Target-machine dependent code for Zilog Z8000, for GDB.
- Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
- Free Software Foundation, Inc.
+
+ Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
+ 2002 Free Software Foundation, Inc.
This file is part of GDB.
@@ -159,10 +160,6 @@ read_memory_pointer (CORE_ADDR x)
CORE_ADDR
z8k_frame_chain (struct frame_info *thisframe)
{
- if (thisframe->prev == 0)
- {
- /* This is the top of the stack, let's get the sp for real */
- }
if (!inside_entry_file (thisframe->pc))
{
return read_memory_pointer (thisframe->frame);
@@ -330,8 +327,8 @@ z8k_print_register_hook (int regno)
{
unsigned short l[2];
- read_relative_register_raw_bytes (regno, (char *) (l + 0));
- read_relative_register_raw_bytes (regno + 1, (char *) (l + 1));
+ frame_register_read (selected_frame, regno, (char *) (l + 0));
+ frame_register_read (selected_frame, regno + 1, (char *) (l + 1));
printf_unfiltered ("\t");
printf_unfiltered ("%04x%04x", l[0], l[1]);
}
@@ -340,10 +337,10 @@ z8k_print_register_hook (int regno)
{
unsigned short l[4];
- read_relative_register_raw_bytes (regno, (char *) (l + 0));
- read_relative_register_raw_bytes (regno + 1, (char *) (l + 1));
- read_relative_register_raw_bytes (regno + 2, (char *) (l + 2));
- read_relative_register_raw_bytes (regno + 3, (char *) (l + 3));
+ 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));
printf_unfiltered ("\t");
printf_unfiltered ("%04x%04x%04x%04x", l[0], l[1], l[2], l[3]);
@@ -353,7 +350,7 @@ z8k_print_register_hook (int regno)
unsigned short rval;
int i;
- read_relative_register_raw_bytes (regno, (char *) (&rval));
+ frame_register_read (selected_frame, regno, (char *) (&rval));
printf_unfiltered ("\n");
for (i = 0; i < 10; i += 2)