Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../proc/self/root/usr/include
File: proc_service.h
/* Callback interface for libthread_db, functions users must define.
[0] Fix | Delete
Copyright (C) 1999-2018 Free Software Foundation, Inc.
[1] Fix | Delete
This file is part of the GNU C Library.
[2] Fix | Delete
[3] Fix | Delete
The GNU C Library is free software; you can redistribute it and/or
[4] Fix | Delete
modify it under the terms of the GNU Lesser General Public
[5] Fix | Delete
License as published by the Free Software Foundation; either
[6] Fix | Delete
version 2.1 of the License, or (at your option) any later version.
[7] Fix | Delete
[8] Fix | Delete
The GNU C Library is distributed in the hope that it will be useful,
[9] Fix | Delete
but WITHOUT ANY WARRANTY; without even the implied warranty of
[10] Fix | Delete
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
[11] Fix | Delete
Lesser General Public License for more details.
[12] Fix | Delete
[13] Fix | Delete
You should have received a copy of the GNU Lesser General Public
[14] Fix | Delete
License along with the GNU C Library; if not, see
[15] Fix | Delete
<http://www.gnu.org/licenses/>. */
[16] Fix | Delete
[17] Fix | Delete
#ifndef _PROC_SERVICE_H
[18] Fix | Delete
#define _PROC_SERVICE_H 1
[19] Fix | Delete
[20] Fix | Delete
/* The definitions in this file must correspond to those in the debugger. */
[21] Fix | Delete
#include <sys/procfs.h>
[22] Fix | Delete
[23] Fix | Delete
__BEGIN_DECLS
[24] Fix | Delete
[25] Fix | Delete
/* Functions in this interface return one of these status codes. */
[26] Fix | Delete
typedef enum
[27] Fix | Delete
{
[28] Fix | Delete
PS_OK, /* Generic "call succeeded". */
[29] Fix | Delete
PS_ERR, /* Generic error. */
[30] Fix | Delete
PS_BADPID, /* Bad process handle. */
[31] Fix | Delete
PS_BADLID, /* Bad LWP identifier. */
[32] Fix | Delete
PS_BADADDR, /* Bad address. */
[33] Fix | Delete
PS_NOSYM, /* Could not find given symbol. */
[34] Fix | Delete
PS_NOFREGS /* FPU register set not available for given LWP. */
[35] Fix | Delete
} ps_err_e;
[36] Fix | Delete
[37] Fix | Delete
[38] Fix | Delete
/* This type is opaque in this interface.
[39] Fix | Delete
It's defined by the user of libthread_db. */
[40] Fix | Delete
struct ps_prochandle;
[41] Fix | Delete
[42] Fix | Delete
[43] Fix | Delete
/* Read or write process memory at the given address. */
[44] Fix | Delete
extern ps_err_e ps_pdread (struct ps_prochandle *,
[45] Fix | Delete
psaddr_t, void *, size_t);
[46] Fix | Delete
extern ps_err_e ps_pdwrite (struct ps_prochandle *,
[47] Fix | Delete
psaddr_t, const void *, size_t);
[48] Fix | Delete
extern ps_err_e ps_ptread (struct ps_prochandle *,
[49] Fix | Delete
psaddr_t, void *, size_t);
[50] Fix | Delete
extern ps_err_e ps_ptwrite (struct ps_prochandle *,
[51] Fix | Delete
psaddr_t, const void *, size_t);
[52] Fix | Delete
[53] Fix | Delete
[54] Fix | Delete
/* Get and set the given LWP's general or FPU register set. */
[55] Fix | Delete
extern ps_err_e ps_lgetregs (struct ps_prochandle *,
[56] Fix | Delete
lwpid_t, prgregset_t);
[57] Fix | Delete
extern ps_err_e ps_lsetregs (struct ps_prochandle *,
[58] Fix | Delete
lwpid_t, const prgregset_t);
[59] Fix | Delete
extern ps_err_e ps_lgetfpregs (struct ps_prochandle *,
[60] Fix | Delete
lwpid_t, prfpregset_t *);
[61] Fix | Delete
extern ps_err_e ps_lsetfpregs (struct ps_prochandle *,
[62] Fix | Delete
lwpid_t, const prfpregset_t *);
[63] Fix | Delete
[64] Fix | Delete
/* Return the PID of the process. */
[65] Fix | Delete
extern pid_t ps_getpid (struct ps_prochandle *);
[66] Fix | Delete
[67] Fix | Delete
/* Fetch the special per-thread address associated with the given LWP.
[68] Fix | Delete
This call is only used on a few platforms (most use a normal register).
[69] Fix | Delete
The meaning of the `int' parameter is machine-dependent. */
[70] Fix | Delete
extern ps_err_e ps_get_thread_area (struct ps_prochandle *,
[71] Fix | Delete
lwpid_t, int, psaddr_t *);
[72] Fix | Delete
[73] Fix | Delete
[74] Fix | Delete
/* Look up the named symbol in the named DSO in the symbol tables
[75] Fix | Delete
associated with the process being debugged, filling in *SYM_ADDR
[76] Fix | Delete
with the corresponding run-time address. */
[77] Fix | Delete
extern ps_err_e ps_pglobal_lookup (struct ps_prochandle *,
[78] Fix | Delete
const char *object_name,
[79] Fix | Delete
const char *sym_name,
[80] Fix | Delete
psaddr_t *sym_addr);
[81] Fix | Delete
[82] Fix | Delete
[83] Fix | Delete
/* Stop or continue the entire process. */
[84] Fix | Delete
extern ps_err_e ps_pstop (struct ps_prochandle *);
[85] Fix | Delete
extern ps_err_e ps_pcontinue (struct ps_prochandle *);
[86] Fix | Delete
[87] Fix | Delete
/* Stop or continue the given LWP alone. */
[88] Fix | Delete
extern ps_err_e ps_lstop (struct ps_prochandle *, lwpid_t);
[89] Fix | Delete
extern ps_err_e ps_lcontinue (struct ps_prochandle *, lwpid_t);
[90] Fix | Delete
[91] Fix | Delete
__END_DECLS
[92] Fix | Delete
[93] Fix | Delete
#endif /* proc_service.h */
[94] Fix | Delete
[95] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function