]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/l4re-core/uclibc/lib/contrib/uclibc/libpthread/linuxthreads.old_db/proc_service.h
Update
[l4.git] / l4 / pkg / l4re-core / uclibc / lib / contrib / uclibc / libpthread / linuxthreads.old_db / proc_service.h
1 /* 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, see
16    <http://www.gnu.org/licenses/>.  */
17
18 /* The definitions in this file must correspond to those in the debugger.  */
19 #include <sys/procfs.h>
20
21 typedef enum
22 {
23   PS_OK,          /* generic "call succeeded" */
24   PS_ERR,         /* generic. */
25   PS_BADPID,      /* bad process handle */
26   PS_BADLID,      /* bad lwp identifier */
27   PS_BADADDR,     /* bad address */
28   PS_NOSYM,       /* p_lookup() could not find given symbol */
29         PS_NOFREGS
30   /*
31    * FPU register set not available for given
32    * lwp
33    */
34 }       ps_err_e;
35
36
37 struct ps_prochandle;           /* user defined. */
38
39
40 extern ps_err_e ps_pdread(struct ps_prochandle *,
41                         psaddr_t, void *, size_t);
42 extern ps_err_e ps_pdwrite(struct ps_prochandle *,
43                         psaddr_t, const void *, size_t);
44 extern ps_err_e ps_ptread(struct ps_prochandle *,
45                         psaddr_t, void *, size_t);
46 extern ps_err_e ps_ptwrite(struct ps_prochandle *,
47                         psaddr_t, const void *, size_t);
48
49 extern ps_err_e ps_pglobal_lookup(struct ps_prochandle *,
50         const char *object_name, const char *sym_name, psaddr_t *sym_addr);
51
52
53 extern ps_err_e ps_lgetregs(struct ps_prochandle *,
54                         lwpid_t, prgregset_t);
55 extern ps_err_e ps_lsetregs(struct ps_prochandle *,
56                         lwpid_t, const prgregset_t);
57 extern ps_err_e ps_lgetfpregs(struct ps_prochandle *,
58                         lwpid_t, prfpregset_t *);
59 extern ps_err_e ps_lsetfpregs(struct ps_prochandle *,
60                         lwpid_t, const prfpregset_t *);
61
62 extern pid_t ps_getpid (struct ps_prochandle *);
63
64
65 extern ps_err_e ps_pstop (const struct ps_prochandle *);
66 extern ps_err_e ps_pcontinue (const struct ps_prochandle *);
67
68 extern ps_err_e ps_lstop (const struct ps_prochandle *, lwpid_t);
69 extern ps_err_e ps_lcontinue (const struct ps_prochandle *, lwpid_t);