projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* hppa-tdep.h, hppa-tdep.c, hppa-hpux-tdep.c: Update for unwinder
[deliverable/binutils-gdb.git]
/
gdb
/
nto-procfs.c
diff --git
a/gdb/nto-procfs.c
b/gdb/nto-procfs.c
index 8140840c6a7c102e9192ec348cb56a78a54cfbd2..0cbff727cc60f42db17dd1610e78ea5f3c7aaede 100644
(file)
--- a/
gdb/nto-procfs.c
+++ b/
gdb/nto-procfs.c
@@
-1,7
+1,7
@@
/* Machine independent support for QNX Neutrino /proc (process file system)
for GDB. Written by Colin Burgess at QNX Software Systems Limited.
/* Machine independent support for QNX Neutrino /proc (process file system)
for GDB. Written by Colin Burgess at QNX Software Systems Limited.
- Copyright (C) 2003, 2006, 2007 Free Software Foundation, Inc.
+ Copyright (C) 2003, 2006, 2007
, 2008
Free Software Foundation, Inc.
Contributed by QNX Software Systems Ltd.
Contributed by QNX Software Systems Ltd.
@@
-9,7
+9,7
@@
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version
2
of the License, or
+ the Free Software Foundation; either version
3
of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
(at your option) any later version.
This program is distributed in the hope that it will be useful,
@@
-18,9
+18,7
@@
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
GNU General Public License for more details.
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., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA. */
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "defs.h"
#include "defs.h"
@@
-67,7
+65,7
@@
static int procfs_xfer_memory (CORE_ADDR, char *, int, int,
struct mem_attrib *attrib,
struct target_ops *);
struct mem_attrib *attrib,
struct target_ops *);
-static void procfs_fetch_registers (int);
+static void procfs_fetch_registers (
struct regcache *,
int);
static void notice_signals (void);
static void notice_signals (void);
@@
-203,7
+201,8
@@
procfs_open (char *arg, int from_tty)
else
{
if (sysinfo->type !=
else
{
if (sysinfo->type !=
- nto_map_arch_to_cputype (TARGET_ARCHITECTURE->arch_name))
+ nto_map_arch_to_cputype (gdbarch_bfd_arch_info
+ (current_gdbarch)->arch_name))
{
close (fd);
error (_("Invalid target CPU."));
{
close (fd);
error (_("Invalid target CPU."));
@@
-714,7
+713,7
@@
procfs_wait (ptid_t ptid, struct target_waitstatus *ourstatus)
general register set and floating point registers (if supported)
and update gdb's idea of their current values. */
static void
general register set and floating point registers (if supported)
and update gdb's idea of their current values. */
static void
-procfs_fetch_registers (int regno)
+procfs_fetch_registers (
struct regcache *regcache,
int regno)
{
union
{
{
union
{
@@
-727,13
+726,13
@@
procfs_fetch_registers (int regno)
procfs_set_thread (inferior_ptid);
if (devctl (ctl_fd, DCMD_PROC_GETGREG, ®, sizeof (reg), ®size) == EOK)
procfs_set_thread (inferior_ptid);
if (devctl (ctl_fd, DCMD_PROC_GETGREG, ®, sizeof (reg), ®size) == EOK)
- nto_supply_gregset (
current_
regcache, (char *) ®.greg);
+ nto_supply_gregset (regcache, (char *) ®.greg);
if (devctl (ctl_fd, DCMD_PROC_GETFPREG, ®, sizeof (reg), ®size)
== EOK)
if (devctl (ctl_fd, DCMD_PROC_GETFPREG, ®, sizeof (reg), ®size)
== EOK)
- nto_supply_fpregset (
current_
regcache, (char *) ®.fpreg);
+ nto_supply_fpregset (regcache, (char *) ®.fpreg);
if (devctl (ctl_fd, DCMD_PROC_GETALTREG, ®, sizeof (reg), ®size)
== EOK)
if (devctl (ctl_fd, DCMD_PROC_GETALTREG, ®, sizeof (reg), ®size)
== EOK)
- nto_supply_altregset (
current_
regcache, (char *) ®.altreg);
+ nto_supply_altregset (regcache, (char *) ®.altreg);
}
/* Copy LEN bytes to/from inferior's memory starting at MEMADDR
}
/* Copy LEN bytes to/from inferior's memory starting at MEMADDR
@@
-1109,7
+1108,7
@@
procfs_kill_inferior (void)
/* Store register REGNO, or all registers if REGNO == -1, from the contents
of REGISTERS. */
static void
/* Store register REGNO, or all registers if REGNO == -1, from the contents
of REGISTERS. */
static void
-procfs_prepare_to_store (
void
)
+procfs_prepare_to_store (
struct regcache *regcache
)
{
}
{
}
@@
-1147,7
+1146,7
@@
get_regset (int regset, char *buf, int bufsize, int *regsize)
}
void
}
void
-procfs_store_registers (int regno)
+procfs_store_registers (
struct regcache *regcache,
int regno)
{
union
{
{
union
{
@@
-1173,7
+1172,7
@@
procfs_store_registers (int regno)
if (dev_set == -1)
continue;
if (dev_set == -1)
continue;
- if (nto_regset_fill (
current_
regcache, regset, (char *) ®) == -1)
+ if (nto_regset_fill (regcache, regset, (char *) ®) == -1)
continue;
err = devctl (ctl_fd, dev_set, ®, regsize, 0);
continue;
err = devctl (ctl_fd, dev_set, ®, regsize, 0);
@@
-1198,7
+1197,7
@@
procfs_store_registers (int regno)
if (len < 1)
return;
if (len < 1)
return;
- regcache_raw_collect (
current_
regcache, regno, (char *) ® + off);
+ regcache_raw_collect (regcache, regno, (char *) ® + off);
err = devctl (ctl_fd, dev_set, ®, regsize, 0);
if (err != EOK)
err = devctl (ctl_fd, dev_set, ®, regsize, 0);
if (err != EOK)
This page took
0.029012 seconds
and
4
git commands to generate.