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
/
m88k-nat.c
diff --git
a/gdb/m88k-nat.c
b/gdb/m88k-nat.c
index 164f12dadbd26d0f3ceaf205b5434e9a9a654973..b631cda2735b24b6c43be601fcfcaeedb6114869 100644
(file)
--- a/
gdb/m88k-nat.c
+++ b/
gdb/m88k-nat.c
@@
-1,6
+1,6
@@
/* Native-dependent Motorola 88xxx support for GDB, the GNU Debugger.
/* Native-dependent Motorola 88xxx support for GDB, the GNU Debugger.
- Copyright 1988, 1990, 1991, 1992,
2001 Free Software Foundation,
- Inc.
+ Copyright 1988, 1990, 1991, 1992,
1993, 1995, 1999, 2000, 2001
+
Free Software Foundation,
Inc.
This file is part of GDB.
This file is part of GDB.
@@
-76,7
+76,7
@@
fetch_inferior_registers (int regno)
offset = (char *) &u.pt_r0 - (char *) &u;
regaddr = offset; /* byte offset to r0; */
offset = (char *) &u.pt_r0 - (char *) &u;
regaddr = offset; /* byte offset to r0; */
-/* offset = ptrace (3,
inferior_pid
, (PTRACE_ARG3_TYPE) offset, 0) - KERNEL_U_ADDR; */
+/* offset = ptrace (3,
PIDGET (inferior_ptid)
, (PTRACE_ARG3_TYPE) offset, 0) - KERNEL_U_ADDR; */
for (regno = 0; regno < NUM_REGS; regno++)
{
/*regaddr = register_addr (regno, offset); */
for (regno = 0; regno < NUM_REGS; regno++)
{
/*regaddr = register_addr (regno, offset); */
@@
-84,20
+84,20
@@
fetch_inferior_registers (int regno)
for (i = 0; i < REGISTER_RAW_SIZE (regno); i += sizeof (int))
{
for (i = 0; i < REGISTER_RAW_SIZE (regno); i += sizeof (int))
{
- *(int *) &buf[i] = ptrace (3,
inferior_pid
,
+ *(int *) &buf[i] = ptrace (3,
PIDGET (inferior_ptid)
,
(PTRACE_ARG3_TYPE) regaddr, 0);
regaddr += sizeof (int);
}
supply_register (regno, buf);
}
/* now load up registers 36 - 38; special pc registers */
(PTRACE_ARG3_TYPE) regaddr, 0);
regaddr += sizeof (int);
}
supply_register (regno, buf);
}
/* now load up registers 36 - 38; special pc registers */
- *(int *) &buf[0] = ptrace (3,
inferior_pid
,
+ *(int *) &buf[0] = ptrace (3,
PIDGET (inferior_ptid)
,
(PTRACE_ARG3_TYPE) SXIP_OFFSET, 0);
supply_register (SXIP_REGNUM, buf);
(PTRACE_ARG3_TYPE) SXIP_OFFSET, 0);
supply_register (SXIP_REGNUM, buf);
- *(int *) &buf[0] = ptrace (3,
inferior_pid
,
+ *(int *) &buf[0] = ptrace (3,
PIDGET (inferior_ptid)
,
(PTRACE_ARG3_TYPE) SNIP_OFFSET, 0);
supply_register (SNIP_REGNUM, buf);
(PTRACE_ARG3_TYPE) SNIP_OFFSET, 0);
supply_register (SNIP_REGNUM, buf);
- *(int *) &buf[0] = ptrace (3,
inferior_pid
,
+ *(int *) &buf[0] = ptrace (3,
PIDGET (inferior_ptid)
,
(PTRACE_ARG3_TYPE) SFIP_OFFSET, 0);
supply_register (SFIP_REGNUM, buf);
}
(PTRACE_ARG3_TYPE) SFIP_OFFSET, 0);
supply_register (SFIP_REGNUM, buf);
}
@@
-128,7
+128,7
@@
store_inferior_registers (int regno)
{
regaddr = offset + regno * sizeof (int);
errno = 0;
{
regaddr = offset + regno * sizeof (int);
errno = 0;
- ptrace (6,
inferior_pid
,
+ ptrace (6,
PIDGET (inferior_ptid)
,
(PTRACE_ARG3_TYPE) regaddr, read_register (regno));
if (errno != 0)
{
(PTRACE_ARG3_TYPE) regaddr, read_register (regno));
if (errno != 0)
{
@@
-137,13
+137,13
@@
store_inferior_registers (int regno)
}
}
else if (regno == SXIP_REGNUM)
}
}
else if (regno == SXIP_REGNUM)
- ptrace (6,
inferior_pid
,
+ ptrace (6,
PIDGET (inferior_ptid)
,
(PTRACE_ARG3_TYPE) SXIP_OFFSET, read_register (regno));
else if (regno == SNIP_REGNUM)
(PTRACE_ARG3_TYPE) SXIP_OFFSET, read_register (regno));
else if (regno == SNIP_REGNUM)
- ptrace (6,
inferior_pid
,
+ ptrace (6,
PIDGET (inferior_ptid)
,
(PTRACE_ARG3_TYPE) SNIP_OFFSET, read_register (regno));
else if (regno == SFIP_REGNUM)
(PTRACE_ARG3_TYPE) SNIP_OFFSET, read_register (regno));
else if (regno == SFIP_REGNUM)
- ptrace (6,
inferior_pid
,
+ ptrace (6,
PIDGET (inferior_ptid)
,
(PTRACE_ARG3_TYPE) SFIP_OFFSET, read_register (regno));
else
printf_unfiltered ("Bad register number for store_inferior routine\n");
(PTRACE_ARG3_TYPE) SFIP_OFFSET, read_register (regno));
else
printf_unfiltered ("Bad register number for store_inferior routine\n");
@@
-155,7
+155,7
@@
store_inferior_registers (int regno)
/* regaddr = register_addr (regno, offset); */
errno = 0;
regaddr = offset + regno * sizeof (int);
/* regaddr = register_addr (regno, offset); */
errno = 0;
regaddr = offset + regno * sizeof (int);
- ptrace (6,
inferior_pid
,
+ ptrace (6,
PIDGET (inferior_ptid)
,
(PTRACE_ARG3_TYPE) regaddr, read_register (regno));
if (errno != 0)
{
(PTRACE_ARG3_TYPE) regaddr, read_register (regno));
if (errno != 0)
{
@@
-163,11
+163,11
@@
store_inferior_registers (int regno)
perror_with_name (buf);
}
}
perror_with_name (buf);
}
}
- ptrace (6,
inferior_pid
,
+ ptrace (6,
PIDGET (inferior_ptid)
,
(PTRACE_ARG3_TYPE) SXIP_OFFSET, read_register (SXIP_REGNUM));
(PTRACE_ARG3_TYPE) SXIP_OFFSET, read_register (SXIP_REGNUM));
- ptrace (6,
inferior_pid
,
+ ptrace (6,
PIDGET (inferior_ptid)
,
(PTRACE_ARG3_TYPE) SNIP_OFFSET, read_register (SNIP_REGNUM));
(PTRACE_ARG3_TYPE) SNIP_OFFSET, read_register (SNIP_REGNUM));
- ptrace (6,
inferior_pid
,
+ ptrace (6,
PIDGET (inferior_ptid)
,
(PTRACE_ARG3_TYPE) SFIP_OFFSET, read_register (SFIP_REGNUM));
}
}
(PTRACE_ARG3_TYPE) SFIP_OFFSET, read_register (SFIP_REGNUM));
}
}
This page took
0.025548 seconds
and
4
git commands to generate.