projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
2002-06-11 Daniel Jacobowitz <drow@mvista.com>
[deliverable/binutils-gdb.git]
/
gdb
/
mipsv4-nat.c
diff --git
a/gdb/mipsv4-nat.c
b/gdb/mipsv4-nat.c
index 8551186bc0fe847b6ec88e8ef4252010493fce8e..901f9b0e39fde640e2cf16a39a326998a3f32b60 100644
(file)
--- a/
gdb/mipsv4-nat.c
+++ b/
gdb/mipsv4-nat.c
@@
-1,5
+1,5
@@
/* Native support for MIPS running SVR4, for GDB.
/* Native support for MIPS running SVR4, for GDB.
- Copyright 1994, 1995 Free Software Foundation, Inc.
+ Copyright 1994, 1995
, 2000, 2001
Free Software Foundation, Inc.
This file is part of GDB.
This file is part of GDB.
@@
-22,11
+22,15
@@
#include "inferior.h"
#include "gdbcore.h"
#include "target.h"
#include "inferior.h"
#include "gdbcore.h"
#include "target.h"
+#include "regcache.h"
#include <sys/time.h>
#include <sys/procfs.h>
#include <setjmp.h> /* For JB_XXX. */
#include <sys/time.h>
#include <sys/procfs.h>
#include <setjmp.h> /* For JB_XXX. */
+/* Prototypes for supply_gregset etc. */
+#include "gregset.h"
+
/* Size of elements in jmpbuf */
#define JB_ELEMENT_SIZE 4
/* Size of elements in jmpbuf */
#define JB_ELEMENT_SIZE 4
@@
-39,8
+43,7
@@
*/
void
*/
void
-supply_gregset (gregsetp)
- gregset_t *gregsetp;
+supply_gregset (gregset_t *gregsetp)
{
register int regi;
register greg_t *regp = &(*gregsetp)[0];
{
register int regi;
register greg_t *regp = &(*gregsetp)[0];
@@
-65,9
+68,7
@@
supply_gregset (gregsetp)
}
void
}
void
-fill_gregset (gregsetp, regno)
- gregset_t *gregsetp;
- int regno;
+fill_gregset (gregset_t *gregsetp, int regno)
{
int regi;
register greg_t *regp = &(*gregsetp)[0];
{
int regi;
register greg_t *regp = &(*gregsetp)[0];
@@
-98,8
+99,7
@@
fill_gregset (gregsetp, regno)
*/
void
*/
void
-supply_fpregset (fpregsetp)
- fpregset_t *fpregsetp;
+supply_fpregset (fpregset_t *fpregsetp)
{
register int regi;
static char zerobuf[MAX_REGISTER_RAW_SIZE] =
{
register int regi;
static char zerobuf[MAX_REGISTER_RAW_SIZE] =
@@
-116,9
+116,7
@@
supply_fpregset (fpregsetp)
}
void
}
void
-fill_fpregset (fpregsetp, regno)
- fpregset_t *fpregsetp;
- int regno;
+fill_fpregset (fpregset_t *fpregsetp, int regno)
{
int regi;
char *from, *to;
{
int regi;
char *from, *to;
@@
-144,12
+142,12
@@
fill_fpregset (fpregsetp, regno)
This routine returns true on success. */
int
This routine returns true on success. */
int
-get_longjmp_target (pc)
- CORE_ADDR *pc;
+get_longjmp_target (CORE_ADDR *pc)
{
{
- char
buf[TARGET_PTR_BIT / TARGET_CHAR_BIT]
;
+ char
*buf
;
CORE_ADDR jb_addr;
CORE_ADDR jb_addr;
+ buf = alloca (TARGET_PTR_BIT / TARGET_CHAR_BIT);
jb_addr = read_register (A0_REGNUM);
if (target_read_memory (jb_addr + _JB_PC * JB_ELEMENT_SIZE, buf,
jb_addr = read_register (A0_REGNUM);
if (target_read_memory (jb_addr + _JB_PC * JB_ELEMENT_SIZE, buf,
This page took
0.025047 seconds
and
4
git commands to generate.