1 |
1325 |
phoenix |
/* Copyright (C) 1999 Free Software Foundation, Inc.
|
2 |
|
|
This file is part of the GNU C Library.
|
3 |
|
|
|
4 |
|
|
The GNU C Library is free software; you can redistribute it and/or
|
5 |
|
|
modify it under the terms of the GNU Lesser General Public
|
6 |
|
|
License as published by the Free Software Foundation; either
|
7 |
|
|
version 2.1 of the License, or (at your option) any later version.
|
8 |
|
|
|
9 |
|
|
The GNU C Library is distributed in the hope that it will be useful,
|
10 |
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11 |
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
12 |
|
|
Lesser General Public License for more details.
|
13 |
|
|
|
14 |
|
|
You should have received a copy of the GNU Lesser General Public
|
15 |
|
|
License along with the GNU C Library; if not, write to the Free
|
16 |
|
|
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
17 |
|
|
02111-1307 USA. */
|
18 |
|
|
|
19 |
|
|
/* The definitions in this file must correspond to those in the debugger. */
|
20 |
|
|
#include <sys/procfs.h>
|
21 |
|
|
|
22 |
|
|
typedef enum
|
23 |
|
|
{
|
24 |
|
|
PS_OK, /* generic "call succeeded" */
|
25 |
|
|
PS_ERR, /* generic. */
|
26 |
|
|
PS_BADPID, /* bad process handle */
|
27 |
|
|
PS_BADLID, /* bad lwp identifier */
|
28 |
|
|
PS_BADADDR, /* bad address */
|
29 |
|
|
PS_NOSYM, /* p_lookup() could not find given symbol */
|
30 |
|
|
PS_NOFREGS
|
31 |
|
|
/*
|
32 |
|
|
* FPU register set not available for given
|
33 |
|
|
* lwp
|
34 |
|
|
*/
|
35 |
|
|
} ps_err_e;
|
36 |
|
|
|
37 |
|
|
|
38 |
|
|
struct ps_prochandle; /* user defined. */
|
39 |
|
|
|
40 |
|
|
|
41 |
|
|
extern ps_err_e ps_pdread(struct ps_prochandle *,
|
42 |
|
|
psaddr_t, void *, size_t);
|
43 |
|
|
extern ps_err_e ps_pdwrite(struct ps_prochandle *,
|
44 |
|
|
psaddr_t, const void *, size_t);
|
45 |
|
|
extern ps_err_e ps_ptread(struct ps_prochandle *,
|
46 |
|
|
psaddr_t, void *, size_t);
|
47 |
|
|
extern ps_err_e ps_ptwrite(struct ps_prochandle *,
|
48 |
|
|
psaddr_t, const void *, size_t);
|
49 |
|
|
|
50 |
|
|
extern ps_err_e ps_pglobal_lookup(struct ps_prochandle *,
|
51 |
|
|
const char *object_name, const char *sym_name, psaddr_t *sym_addr);
|
52 |
|
|
|
53 |
|
|
|
54 |
|
|
extern ps_err_e ps_lgetregs(struct ps_prochandle *,
|
55 |
|
|
lwpid_t, prgregset_t);
|
56 |
|
|
extern ps_err_e ps_lsetregs(struct ps_prochandle *,
|
57 |
|
|
lwpid_t, const prgregset_t);
|
58 |
|
|
extern ps_err_e ps_lgetfpregs(struct ps_prochandle *,
|
59 |
|
|
lwpid_t, prfpregset_t *);
|
60 |
|
|
extern ps_err_e ps_lsetfpregs(struct ps_prochandle *,
|
61 |
|
|
lwpid_t, const prfpregset_t *);
|
62 |
|
|
|
63 |
|
|
extern pid_t ps_getpid (struct ps_prochandle *);
|
64 |
|
|
|
65 |
|
|
|
66 |
|
|
extern ps_err_e ps_pstop (const struct ps_prochandle *);
|
67 |
|
|
extern ps_err_e ps_pcontinue (const struct ps_prochandle *);
|
68 |
|
|
|
69 |
|
|
extern ps_err_e ps_lstop (const struct ps_prochandle *, lwpid_t);
|
70 |
|
|
extern ps_err_e ps_lcontinue (const struct ps_prochandle *, lwpid_t);
|