summaryrefslogtreecommitdiff
path: root/gnu/usr.bin
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2002-10-21 17:57:34 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2002-10-21 17:57:34 +0000
commit4680183c186df58c7a99599bae3a120b19c2eec6 (patch)
tree6234bd371fda210e73278c14c7b45d583bf25e95 /gnu/usr.bin
parentaf87f423461805e2fa4fd6c95af73a4417d0172c (diff)
make it compile through the gdb, still needs more work; fgsch@ ok
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r--gnu/usr.bin/binutils/config.guess2
-rw-r--r--gnu/usr.bin/binutils/gdb/config/pa/nm-obsd.h7
-rw-r--r--gnu/usr.bin/binutils/gdb/hppaobsd-nat.c10
3 files changed, 6 insertions, 13 deletions
diff --git a/gnu/usr.bin/binutils/config.guess b/gnu/usr.bin/binutils/config.guess
index 751486443ba..5aee1bd9c12 100644
--- a/gnu/usr.bin/binutils/config.guess
+++ b/gnu/usr.bin/binutils/config.guess
@@ -656,7 +656,7 @@ EOF
echo hppa1.1-hp-lites
exit 0 ;;
hppa*:OpenBSD:*:*)
- echo hppa-unknown-openbsd
+ echo hppa-unknown-openbsd${UNAME_RELEASE}
exit 0 ;;
C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
echo c1-convex-bsd
diff --git a/gnu/usr.bin/binutils/gdb/config/pa/nm-obsd.h b/gnu/usr.bin/binutils/gdb/config/pa/nm-obsd.h
index b31ab5c9bb7..b99e9460a68 100644
--- a/gnu/usr.bin/binutils/gdb/config/pa/nm-obsd.h
+++ b/gnu/usr.bin/binutils/gdb/config/pa/nm-obsd.h
@@ -17,8 +17,6 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
-#include "somsolib.h"
-
#define U_REGS_OFFSET 0
#define KERNEL_U_ADDR 0
@@ -31,11 +29,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#define PTRACE_ARG3_TYPE caddr_t
-/* HPUX 8.0, in its infinite wisdom, has chosen to prototype ptrace
- with five arguments, so programs written for normal ptrace lose. */
-#define FIVE_ARG_PTRACE
-
-
/* This macro defines the register numbers (from REGISTER_NAMES) that
are effectively unavailable to the user through ptrace(). It allows
us to include the whole register set in REGISTER_NAMES (inorder to
diff --git a/gnu/usr.bin/binutils/gdb/hppaobsd-nat.c b/gnu/usr.bin/binutils/gdb/hppaobsd-nat.c
index 57360f3fd64..16df7605eb5 100644
--- a/gnu/usr.bin/binutils/gdb/hppaobsd-nat.c
+++ b/gnu/usr.bin/binutils/gdb/hppaobsd-nat.c
@@ -61,11 +61,11 @@ fetch_register (regno)
offset = U_REGS_OFFSET;
- regaddr = register_addr (regno, offset);
+ /* regaddr = register_addr (regno, offset); */
for (i = 0; i < REGISTER_RAW_SIZE (regno); i += sizeof (int))
{
errno = 0;
- *(int *) &buf[i] = ptrace (PT_RUREGS, inferior_pid,
+ *(int *) &buf[i] = ptrace (PT_GETREGS, inferior_pid,
(PTRACE_ARG3_TYPE) regaddr, 0);
regaddr += sizeof (int);
if (errno != 0)
@@ -115,12 +115,12 @@ store_inferior_registers (regno)
{
if (CANNOT_STORE_REGISTER (regno))
return;
- regaddr = register_addr (regno, offset);
+ /* regaddr = register_addr (regno, offset); */
errno = 0;
if (regno == PCOQ_HEAD_REGNUM || regno == PCOQ_TAIL_REGNUM)
{
scratch = *(int *) &registers[REGISTER_BYTE (regno)] | 0x3;
- ptrace (PT_WUREGS, inferior_pid, (PTRACE_ARG3_TYPE) regaddr,
+ ptrace (PT_SETREGS, inferior_pid, (PTRACE_ARG3_TYPE) regaddr,
scratch);
if (errno != 0)
{
@@ -134,7 +134,7 @@ store_inferior_registers (regno)
for (i = 0; i < REGISTER_RAW_SIZE (regno); i += sizeof(int))
{
errno = 0;
- ptrace (PT_WUREGS, inferior_pid, (PTRACE_ARG3_TYPE) regaddr,
+ ptrace (PT_SETREGS, inferior_pid, (PTRACE_ARG3_TYPE) regaddr,
*(int *) &registers[REGISTER_BYTE (regno) + i]);
if (errno != 0)
{