projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gdb/
[deliverable/binutils-gdb.git]
/
gdb
/
hppa-linux-nat.c
diff --git
a/gdb/hppa-linux-nat.c
b/gdb/hppa-linux-nat.c
index def0f8657ade6a0dd0329c8b886fe8d23066cdbe..c1b9122249def5859808173b980b463509848679 100644
(file)
--- a/
gdb/hppa-linux-nat.c
+++ b/
gdb/hppa-linux-nat.c
@@
-1,6
+1,7
@@
/* Functions specific to running GDB native on HPPA running GNU/Linux.
/* Functions specific to running GDB native on HPPA running GNU/Linux.
- Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
+ Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009
+ Free Software Foundation, Inc.
This file is part of GDB.
This file is part of GDB.
@@
-29,11
+30,8
@@
#include <sys/ptrace.h>
#include <linux/version.h>
#include <sys/ptrace.h>
#include <linux/version.h>
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,43)
-#include <asm/offset.h>
-#else
-#include <asm/offsets.h>
-#endif
+#include <asm/ptrace.h>
+#include "hppa-linux-offsets.h"
#include "hppa-tdep.h"
#include "hppa-tdep.h"
@@
-156,7
+154,7
@@
hppa_linux_register_addr (int regno, CORE_ADDR blockend)
{
CORE_ADDR addr;
{
CORE_ADDR addr;
- if ((unsigned) regno >=
gdbarch_num_regs (current_gdbarch
))
+ if ((unsigned) regno >=
ARRAY_SIZE (u_offsets
))
error (_("Invalid register number %d."), regno);
if (u_offsets[regno] == -1)
error (_("Invalid register number %d."), regno);
if (u_offsets[regno] == -1)
@@
-272,7
+270,8
@@
store_register (const struct regcache *regcache, int regno)
point registers depending upon the value of regno. */
static void
point registers depending upon the value of regno. */
static void
-hppa_linux_fetch_inferior_registers (struct regcache *regcache, int regno)
+hppa_linux_fetch_inferior_registers (struct target_ops *ops,
+ struct regcache *regcache, int regno)
{
if (-1 == regno)
{
{
if (-1 == regno)
{
@@
-292,7
+291,8
@@
hppa_linux_fetch_inferior_registers (struct regcache *regcache, int regno)
point registers depending upon the value of regno. */
static void
point registers depending upon the value of regno. */
static void
-hppa_linux_store_inferior_registers (struct regcache *regcache, int regno)
+hppa_linux_store_inferior_registers (struct target_ops *ops,
+ struct regcache *regcache, int regno)
{
if (-1 == regno)
{
{
if (-1 == regno)
{
This page took
0.02439 seconds
and
4
git commands to generate.