From: Richard Earnshaw <rearnsha@arm.com>
To: gdb-patches@sources.redhat.com
Cc: Richard.Earnshaw@arm.com
Subject: [PATCH] fix inferior_pid argument for arm-netbsd
Date: Wed, 09 Jan 2002 05:39:00 -0000 [thread overview]
Message-ID: <200201091338.NAA22580@cam-mail2.cambridge.arm.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 478 bytes --]
This is a mechanical change that is required to get the current sources to
build at all for arm-netbsd native. I guess the code I developed the
NetBSD sources for must have predated this global change.
With this and previous patch at least cvs gdb will now build on arm-netbsd.
[ The testsuite results are somewhat horrible :-( ]
R.
<date> Richard Earnshaw (rearnsha@arm.com)
* armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
inferior_ptid.pid.
[-- Attachment #2: pid.patch --]
[-- Type: text/x-patch , Size: 2199 bytes --]
Index: armnbsd-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/armnbsd-nat.c,v
retrieving revision 1.1
diff -p -r1.1 armnbsd-nat.c
*** armnbsd-nat.c 2001/12/17 21:14:10 1.1
--- armnbsd-nat.c 2002/01/09 13:24:50
*************** fetch_inferior_registers (regno)
*** 34,46 ****
struct reg inferior_registers;
struct fpreg inferior_fpregisters;
! ptrace (PT_GETREGS, inferior_pid, (PTRACE_ARG3_TYPE) &inferior_registers, 0);
memcpy (®isters[REGISTER_BYTE (0)], &inferior_registers,
16 * sizeof (unsigned int));
memcpy (®isters[REGISTER_BYTE (PS_REGNUM)], &inferior_registers.r_cpsr,
sizeof (unsigned int));
! ptrace (PT_GETFPREGS, inferior_pid, (PTRACE_ARG3_TYPE) &inferior_fpregisters,
! 0);
memcpy (®isters[REGISTER_BYTE (F0_REGNUM)], &inferior_fpregisters.fpr[0],
8 * sizeof (fp_reg_t));
memcpy (®isters[REGISTER_BYTE (FPS_REGNUM)],
--- 34,47 ----
struct reg inferior_registers;
struct fpreg inferior_fpregisters;
! ptrace (PT_GETREGS, inferior_ptid.pid,
! (PTRACE_ARG3_TYPE) &inferior_registers, 0);
memcpy (®isters[REGISTER_BYTE (0)], &inferior_registers,
16 * sizeof (unsigned int));
memcpy (®isters[REGISTER_BYTE (PS_REGNUM)], &inferior_registers.r_cpsr,
sizeof (unsigned int));
! ptrace (PT_GETFPREGS, inferior_ptid.pid,
! (PTRACE_ARG3_TYPE) &inferior_fpregisters, 0);
memcpy (®isters[REGISTER_BYTE (F0_REGNUM)], &inferior_fpregisters.fpr[0],
8 * sizeof (fp_reg_t));
memcpy (®isters[REGISTER_BYTE (FPS_REGNUM)],
*************** store_inferior_registers (regno)
*** 58,64 ****
16 * sizeof (unsigned int));
memcpy (&inferior_registers.r_cpsr, ®isters[REGISTER_BYTE (PS_REGNUM)],
sizeof (unsigned int));
! ptrace (PT_SETREGS, inferior_pid, (PTRACE_ARG3_TYPE) &inferior_registers, 0);
/* XXX Set FP regs. */
}
--- 59,66 ----
16 * sizeof (unsigned int));
memcpy (&inferior_registers.r_cpsr, ®isters[REGISTER_BYTE (PS_REGNUM)],
sizeof (unsigned int));
! ptrace (PT_SETREGS, inferior_ptid.pid,
! (PTRACE_ARG3_TYPE) &inferior_registers, 0);
/* XXX Set FP regs. */
}
next reply other threads:[~2002-01-09 13:39 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-09 5:39 Richard Earnshaw [this message]
[not found] ` <rearnsha@arm.com>
2002-01-09 7:40 ` Kevin Buettner
2002-01-09 7:54 ` Richard Earnshaw
2002-01-10 9:59 ` Richard Earnshaw
2002-01-10 10:38 ` Kevin Buettner
2002-01-12 9:47 ` [PATCH] ARM: Eliminate EXTRA_FRAME_INFO & FRAME_FIND_SAVED_REGS Kevin Buettner
2002-01-13 7:28 ` Richard Earnshaw
2002-01-13 9:32 ` Kevin Buettner
2002-01-13 10:40 ` Andrew Cagney
2002-01-13 11:08 ` Andrew Cagney
2002-01-13 11:48 ` Kevin Buettner
2002-01-13 11:54 ` Andrew Cagney
2002-01-14 2:18 ` Richard Earnshaw
2002-01-12 3:51 Richard Earnshaw
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200201091338.NAA22580@cam-mail2.cambridge.arm.com \
--to=rearnsha@arm.com \
--cc=Richard.Earnshaw@arm.com \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox