Move duplicated code to common/gdb_proc_service.h
[deliverable/binutils-gdb.git] / gdb / gdb_proc_service.h
CommitLineData
110be7c9 1/* <proc_service.h> replacement for systems that don't have it.
e2882c85 2 Copyright (C) 2000-2018 Free Software Foundation, Inc.
110be7c9
MK
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
a9762ec7 8 the Free Software Foundation; either version 3 of the License, or
110be7c9
MK
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
a9762ec7 17 along with this program. If not, see <http://www.gnu.org/licenses/>. */
110be7c9
MK
18
19#ifndef GDB_PROC_SERVICE_H
20#define GDB_PROC_SERVICE_H
21
7c619dbd 22#include "common/gdb_proc_service.h"
110be7c9 23
31925464
MW
24#include "gregset.h"
25
00431a78
PA
26struct thread_info;
27
110be7c9
MK
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
35typedef gdb_fpregset_t gdb_prfpregset_t;
36#else
37typedef prfpregset_t gdb_prfpregset_t;
83d37ec8 38#endif
ed9a39eb 39
a298c5e8 40/* GDB specific structure that identifies the target process. */
110be7c9
MK
41struct ps_prochandle
42{
93a91755 43 /* The LWP we use for memory reads. */
00431a78 44 thread_info *thread;
110be7c9
MK
45};
46
47#endif /* gdb_proc_service.h */
This page took 1.546421 seconds and 4 git commands to generate.