OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-7.2/] [gdb/] [gdbserver/] [gdb_proc_service.h] - Blame information for rev 342

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 330 jeremybenn
/* <proc_service.h> replacement for systems that don't have it.
2
   Copyright (C) 2000, 2006, 2007, 2008, 2009, 2010
3
   Free Software Foundation, Inc.
4
 
5
   This file is part of GDB.
6
 
7
   This program is free software; you can redistribute it and/or modify
8
   it under the terms of the GNU General Public License as published by
9
   the Free Software Foundation; either version 3 of the License, or
10
   (at your option) any later version.
11
 
12
   This program is distributed in the hope that it will be useful,
13
   but WITHOUT ANY WARRANTY; without even the implied warranty of
14
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
   GNU General Public License for more details.
16
 
17
   You should have received a copy of the GNU General Public License
18
   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
19
 
20
#ifndef GDB_PROC_SERVICE_H
21
#define GDB_PROC_SERVICE_H
22
 
23
#include <sys/types.h>
24
 
25
#ifdef HAVE_PROC_SERVICE_H
26
#include <proc_service.h>
27
#else
28
 
29
#ifdef HAVE_SYS_PROCFS_H
30
#include <sys/procfs.h>
31
#endif
32
 
33
/* Not all platforms bring in <linux/elf.h> via <sys/procfs.h>.  If
34
   <sys/procfs.h> wasn't enough to find elf_fpregset_t, try the kernel
35
   headers also (but don't if we don't need to).  */
36
#ifndef HAVE_ELF_FPREGSET_T
37
# ifdef HAVE_LINUX_ELF_H
38
#  include <linux/elf.h>
39
# endif
40
#endif
41
 
42
typedef enum
43
{
44
  PS_OK,                        /* Success.  */
45
  PS_ERR,                       /* Generic error.  */
46
  PS_BADPID,                    /* Bad process handle.  */
47
  PS_BADLID,                    /* Bad LWP id.  */
48
  PS_BADADDR,                   /* Bad address.  */
49
  PS_NOSYM,                     /* Symbol not found.  */
50
  PS_NOFREGS                    /* FPU register set not available.  */
51
} ps_err_e;
52
 
53
#ifndef HAVE_LWPID_T
54
typedef unsigned int lwpid_t;
55
#endif
56
 
57
#ifndef HAVE_PSADDR_T
58
typedef void *psaddr_t;
59
#endif
60
 
61
#ifndef HAVE_PRGREGSET_T
62
typedef elf_gregset_t prgregset_t;
63
#endif
64
 
65
#endif /* HAVE_PROC_SERVICE_H */
66
 
67
/* Structure that identifies the target process.  */
68
struct ps_prochandle
69
{
70
  /* We don't need to track anything.  All context is served from the
71
     current inferior.  */
72
};
73
 
74
#endif /* gdb_proc_service.h */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.