projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
2000-12-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
[deliverable/binutils-gdb.git]
/
gdb
/
lynx-nat.c
diff --git
a/gdb/lynx-nat.c
b/gdb/lynx-nat.c
index 2477b1ff0eac556d2aea687f4c2198dc83b2f9cb..20a7e163ee82e912c7179c1ed7231b4f7993b80a 100644
(file)
--- a/
gdb/lynx-nat.c
+++ b/
gdb/lynx-nat.c
@@
-28,8
+28,8
@@
#include <sys/wait.h>
#include <sys/fpp.h>
#include <sys/wait.h>
#include <sys/fpp.h>
-static unsigned long registers_addr
PARAMS ((int pid)
);
-static void fetch_core_registers
PARAMS ((char *, unsigned, int, CORE_ADDR)
);
+static unsigned long registers_addr
(int pid
);
+static void fetch_core_registers
(char *, unsigned, int, CORE_ADDR
);
#define X(ENTRY)(offsetof(struct econtext, ENTRY))
#define X(ENTRY)(offsetof(struct econtext, ENTRY))
@@
-260,8
+260,7
@@
static int regmap[] =
It also handles knows where to find the I & L regs on the stack. */
void
It also handles knows where to find the I & L regs on the stack. */
void
-fetch_inferior_registers (regno)
- int regno;
+fetch_inferior_registers (int regno)
{
int whatregs = 0;
{
int whatregs = 0;
@@
-319,15
+318,15
@@
fetch_inferior_registers (regno)
sp = read_register (SP_REGNUM);
sp = read_register (SP_REGNUM);
- target_
xfer
_memory (sp + FRAME_SAVED_I0,
+ target_
read
_memory (sp + FRAME_SAVED_I0,
®isters[REGISTER_BYTE (I0_REGNUM)],
®isters[REGISTER_BYTE (I0_REGNUM)],
- 8 * REGISTER_RAW_SIZE (I0_REGNUM)
, 0
);
+ 8 * REGISTER_RAW_SIZE (I0_REGNUM));
for (i = I0_REGNUM; i <= I7_REGNUM; i++)
register_valid[i] = 1;
for (i = I0_REGNUM; i <= I7_REGNUM; i++)
register_valid[i] = 1;
- target_
xfer
_memory (sp + FRAME_SAVED_L0,
+ target_
read
_memory (sp + FRAME_SAVED_L0,
®isters[REGISTER_BYTE (L0_REGNUM)],
®isters[REGISTER_BYTE (L0_REGNUM)],
- 8 * REGISTER_RAW_SIZE (L0_REGNUM)
, 0
);
+ 8 * REGISTER_RAW_SIZE (L0_REGNUM));
for (i = L0_REGNUM; i <= L0_REGNUM + 7; i++)
register_valid[i] = 1;
}
for (i = L0_REGNUM; i <= L0_REGNUM + 7; i++)
register_valid[i] = 1;
}
@@
-361,8
+360,7
@@
fetch_inferior_registers (regno)
this point. */
void
this point. */
void
-store_inferior_registers (regno)
- int regno;
+store_inferior_registers (int regno)
{
int whatregs = 0;
{
int whatregs = 0;
@@
-413,13
+411,13
@@
store_inferior_registers (regno)
{
if (!register_valid[L0_REGNUM + 5])
abort ();
{
if (!register_valid[L0_REGNUM + 5])
abort ();
- target_
xfer
_memory (sp + FRAME_SAVED_I0,
+ target_
write
_memory (sp + FRAME_SAVED_I0,
®isters[REGISTER_BYTE (I0_REGNUM)],
®isters[REGISTER_BYTE (I0_REGNUM)],
- 8 * REGISTER_RAW_SIZE (I0_REGNUM)
, 1
);
+ 8 * REGISTER_RAW_SIZE (I0_REGNUM));
- target_
xfer
_memory (sp + FRAME_SAVED_L0,
+ target_
write
_memory (sp + FRAME_SAVED_L0,
®isters[REGISTER_BYTE (L0_REGNUM)],
®isters[REGISTER_BYTE (L0_REGNUM)],
- 8 * REGISTER_RAW_SIZE (L0_REGNUM)
, 1
);
+ 8 * REGISTER_RAW_SIZE (L0_REGNUM));
}
else if (regno >= L0_REGNUM && regno <= I7_REGNUM)
{
}
else if (regno >= L0_REGNUM && regno <= I7_REGNUM)
{
@@
-431,8
+429,9
@@
store_inferior_registers (regno)
else
regoffset = REGISTER_BYTE (regno) - REGISTER_BYTE (I0_REGNUM)
+ FRAME_SAVED_I0;
else
regoffset = REGISTER_BYTE (regno) - REGISTER_BYTE (I0_REGNUM)
+ FRAME_SAVED_I0;
- target_xfer_memory (sp + regoffset, ®isters[REGISTER_BYTE (regno)],
- REGISTER_RAW_SIZE (regno), 1);
+ target_write_memory (sp + regoffset,
+ ®isters[REGISTER_BYTE (regno)],
+ REGISTER_RAW_SIZE (regno));
}
}
}
}
@@
-468,8
+467,7
@@
store_inferior_registers (regno)
saved context block. */
static unsigned long
saved context block. */
static unsigned long
-registers_addr (pid)
- int pid;
+registers_addr (int pid)
{
CORE_ADDR stblock;
int ecpoff = offsetof (st_t, ecp);
{
CORE_ADDR stblock;
int ecpoff = offsetof (st_t, ecp);
@@
-494,8
+492,7
@@
registers_addr (pid)
marking them as valid so we won't fetch them again. */
void
marking them as valid so we won't fetch them again. */
void
-fetch_inferior_registers (regno)
- int regno;
+fetch_inferior_registers (int regno)
{
int reglo, reghi;
int i;
{
int reglo, reghi;
int i;
@@
-546,8
+543,7
@@
fetch_inferior_registers (regno)
#endif
void
#endif
void
-store_inferior_registers (regno)
- int regno;
+store_inferior_registers (int regno)
{
int reglo, reghi;
int i;
{
int reglo, reghi;
int i;
@@
-594,9
+590,7
@@
store_inferior_registers (regno)
of error; store status through argument pointer OURSTATUS. */
int
of error; store status through argument pointer OURSTATUS. */
int
-child_wait (pid, ourstatus)
- int pid;
- struct target_waitstatus *ourstatus;
+child_wait (int pid, struct target_waitstatus *ourstatus)
{
int save_errno;
int thread;
{
int save_errno;
int thread;
@@
-715,8
+709,7
@@
child_wait (pid, ourstatus)
/* Return nonzero if the given thread is still alive. */
int
/* Return nonzero if the given thread is still alive. */
int
-child_thread_alive (pid)
- int pid;
+child_thread_alive (int pid)
{
/* Arggh. Apparently pthread_kill only works for threads within
the process that calls pthread_kill.
{
/* Arggh. Apparently pthread_kill only works for threads within
the process that calls pthread_kill.
@@
-735,10
+728,7
@@
child_thread_alive (pid)
If SIGNAL is nonzero, give it that signal. */
void
If SIGNAL is nonzero, give it that signal. */
void
-child_resume (pid, step, signal)
- int pid;
- int step;
- enum target_signal signal;
+child_resume (int pid, int step, enum target_signal signal)
{
int func;
{
int func;
@@
-774,8
+764,7
@@
child_resume (pid, step, signal)
buffer. */
char *
buffer. */
char *
-child_pid_to_str (pid)
- int pid;
+child_pid_to_str (int pid)
{
static char buf[40];
{
static char buf[40];
@@
-798,11
+787,8
@@
child_pid_to_str (pid)
*/
static void
*/
static void
-fetch_core_registers (core_reg_sect, core_reg_size, which, reg_addr)
- char *core_reg_sect;
- unsigned core_reg_size;
- int which;
- CORE_ADDR reg_addr;
+fetch_core_registers (char *core_reg_sect, unsigned core_reg_size, int which,
+ CORE_ADDR reg_addr)
{
struct st_entry s;
unsigned int regno;
{
struct st_entry s;
unsigned int regno;
@@
-834,7
+820,7
@@
static struct core_fns lynx_core_fns =
};
void
};
void
-_initialize_core_lynx ()
+_initialize_core_lynx (
void
)
{
add_core_fns (&lynx_core_fns);
}
{
add_core_fns (&lynx_core_fns);
}
This page took
0.025856 seconds
and
4
git commands to generate.