Move duplicated code to common/gdb_proc_service.h
[deliverable/binutils-gdb.git] / gdb / gdb_proc_service.h
1 /* <proc_service.h> replacement for systems that don't have it.
2 Copyright (C) 2000-2018 Free Software Foundation, Inc.
3
4 This file is part of GDB.
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>. */
18
19 #ifndef GDB_PROC_SERVICE_H
20 #define GDB_PROC_SERVICE_H
21
22 #include "common/gdb_proc_service.h"
23
24 #include "gregset.h"
25
26 struct thread_info;
27
28 /* Fix-up some broken systems. */
29
30 /* Unfortunately glibc 2.1.3 was released with a broken prfpregset_t
31 type. We let configure check for this lossage, and make
32 appropriate typedefs here. */
33
34 #ifdef PRFPREGSET_T_BROKEN
35 typedef gdb_fpregset_t gdb_prfpregset_t;
36 #else
37 typedef prfpregset_t gdb_prfpregset_t;
38 #endif
39
40 /* GDB specific structure that identifies the target process. */
41 struct ps_prochandle
42 {
43 /* The LWP we use for memory reads. */
44 thread_info *thread;
45 };
46
47 #endif /* gdb_proc_service.h */
This page took 0.032489 seconds and 5 git commands to generate.