/* Target-machine dependent code for the AMD 29000
- Copyright (C) 1990 Free Software Foundation, Inc.
+ Copyright 1990, 1991 Free Software Foundation, Inc.
Contributed by Cygnus Support. Written by Jim Kingdon.
This file is part of GDB.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 1, or (at your option)
-any later version.
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
-along with this program; see the file COPYING. If not, write to
-the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
+along with this program; if not, write to the Free Software
+Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "defs.h"
#include "gdbcore.h"
#include <stdio.h>
#include "frame.h"
#include "value.h"
-#include "param.h"
#include "symtab.h"
#include "inferior.h"
+extern CORE_ADDR text_start; /* FIXME, kludge... */
+
/* Structure to hold cached info about function prologues. */
struct prologue_info
{
/* Assume innermost frame. May produce strange results for "info frame"
but there isn't any way to tell the difference. */
init_frame_info (1, fci);
- else
- /* We're in get_prev_frame_info.
- Take care of everything in init_frame_pc. */
- ;
+ else {
+ /* We're in get_prev_frame_info.
+ Take care of everything in init_frame_pc. */
+ ;
+ }
}
void
if (lval != NULL)
*lval = lval_memory;
if (actual_mem_addr != NULL)
- *actual_mem_addr == memaddr;
+ *actual_mem_addr = memaddr;
}
}
if (myaddr != NULL)
write_memory (memaddr, myaddr, 4);
if (actual_mem_addr != NULL)
- *actual_mem_addr == memaddr;
+ *actual_mem_addr = memaddr;
}
}
\f
write_register
(SR_REGNUM (i + 128),
read_register (LR0_REGNUM + DUMMY_ARG / 4 + i));
- for (i = 0; i < DUMMY_SAVE_GR96; ++i)
+ for (i = 0; i < DUMMY_SAVE_GREGS; ++i)
write_register
- (GR96_REGNUM + i,
+ (RETURN_REGNUM + i,
read_register (LR0_REGNUM + DUMMY_ARG / 4 + DUMMY_SAVE_SR128 + i));
}
for (i = 0; i < DUMMY_SAVE_SR128; ++i)
write_register (LR0_REGNUM + DUMMY_ARG / 4 + i,
read_register (SR_REGNUM (i + 128)));
- for (i = 0; i < DUMMY_SAVE_GR96; ++i)
+ for (i = 0; i < DUMMY_SAVE_GREGS; ++i)
write_register (LR0_REGNUM + DUMMY_ARG / 4 + DUMMY_SAVE_SR128 + i,
- read_register (GR96_REGNUM + i));
+ read_register (RETURN_REGNUM + i));
}