projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move some ppc macros to nat/ppc-linux.h
[deliverable/binutils-gdb.git]
/
gdb
/
gdbserver
/
proc-service.c
diff --git
a/gdb/gdbserver/proc-service.c
b/gdb/gdbserver/proc-service.c
index 882717436f53cfbb10b1be8be50dcddb9b7a7519..b181ae5640598359dd74f15646287ddd4cda7342 100644
(file)
--- a/
gdb/gdbserver/proc-service.c
+++ b/
gdb/gdbserver/proc-service.c
@@
-1,6
+1,5
@@
/* libthread_db helper functions for the remote server for GDB.
/* libthread_db helper functions for the remote server for GDB.
- Copyright (C) 2002, 2004, 2005, 2006, 2007, 2008, 2009, 2010
- Free Software Foundation, Inc.
+ Copyright (C) 2002-2015 Free Software Foundation, Inc.
Contributed by MontaVista Software.
Contributed by MontaVista Software.
@@
-40,18
+39,20
@@
typedef size_t gdb_ps_size_t;
#ifdef HAVE_REGSETS
static struct regset_info *
#ifdef HAVE_REGSETS
static struct regset_info *
-gregset_info(void)
+gregset_info
(void)
{
int i = 0;
{
int i = 0;
+ const struct regs_info *regs_info = (*the_low_target.regs_info) ();
+ struct regsets_info *regsets_info = regs_info->regsets_info;
- while (
target_
regsets[i].size != -1)
+ while (
regsets_info->
regsets[i].size != -1)
{
{
- if (
target_
regsets[i].type == GENERAL_REGS)
+ if (
regsets_info->
regsets[i].type == GENERAL_REGS)
break;
i++;
}
break;
i++;
}
- return &
target_
regsets[i];
+ return &
regsets_info->
regsets[i];
}
#endif
}
#endif
@@
-65,7
+66,7
@@
ps_pglobal_lookup (gdb_ps_prochandle_t ph, const char *obj,
{
CORE_ADDR addr;
{
CORE_ADDR addr;
- if (look_up_one_symbol (name, &addr) == 0)
+ if (
thread_db_
look_up_one_symbol (name, &addr) == 0)
return PS_NOSYM;
*sym_addr = (psaddr_t) (unsigned long) addr;
return PS_NOSYM;
*sym_addr = (psaddr_t) (unsigned long) addr;
@@
-100,20
+101,20
@@
ps_lgetregs (gdb_ps_prochandle_t ph, lwpid_t lwpid, prgregset_t gregset)
{
#ifdef HAVE_REGSETS
struct lwp_info *lwp;
{
#ifdef HAVE_REGSETS
struct lwp_info *lwp;
- struct thread_info *reg_
inferior, *save_inferior
;
+ struct thread_info *reg_
thread, *saved_thread
;
struct regcache *regcache;
lwp = find_lwp_pid (pid_to_ptid (lwpid));
if (lwp == NULL)
return PS_ERR;
struct regcache *regcache;
lwp = find_lwp_pid (pid_to_ptid (lwpid));
if (lwp == NULL)
return PS_ERR;
- reg_
inferior
= get_lwp_thread (lwp);
- save
_inferior = current_inferior
;
- current_
inferior = reg_inferior
;
- regcache = get_thread_regcache (current_
inferior
, 1);
+ reg_
thread
= get_lwp_thread (lwp);
+ save
d_thread = current_thread
;
+ current_
thread = reg_thread
;
+ regcache = get_thread_regcache (current_
thread
, 1);
gregset_info ()->fill_function (regcache, gregset);
gregset_info ()->fill_function (regcache, gregset);
- current_
inferior = save_inferior
;
+ current_
thread = saved_thread
;
return PS_OK;
#else
return PS_ERR;
return PS_OK;
#else
return PS_ERR;
@@
-156,5
+157,5
@@
ps_lsetfpregs (gdb_ps_prochandle_t ph, lwpid_t lwpid, void *fpregset)
pid_t
ps_getpid (gdb_ps_prochandle_t ph)
{
pid_t
ps_getpid (gdb_ps_prochandle_t ph)
{
- return pid_of (
get_thread_lwp (current_inferior)
);
+ return pid_of (
current_thread
);
}
}
This page took
0.024935 seconds
and
4
git commands to generate.