1 /* Copyright (C) 1999 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public License as
6 published by the Free Software Foundation; either version 2 of the
7 License, or (at your option) any later version.
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 Library General Public License for more details.
14 You should have received a copy of the GNU Library General Public
15 License along with the GNU C Library; see the file COPYING.LIB. If not,
16 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 Boston, MA 02111-1307, USA. */
19 /* The definitions in this file must correspond to those in the debugger. */
20 #include <sys/procfs.h>
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 */
32 * FPU register set not available for given
38 struct ps_prochandle
; /* user defined. */
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);
50 extern ps_err_e
ps_pglobal_lookup(struct ps_prochandle
*,
51 const char *object_name
, const char *sym_name
, psaddr_t
*sym_addr
);
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
*);
63 extern pid_t
ps_getpid (struct ps_prochandle
*);
66 extern ps_err_e
ps_pstop (const struct ps_prochandle
*);
67 extern ps_err_e
ps_pcontinue (const struct ps_prochandle
*);
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
);