gdb: add target_ops::supports_displaced_step
[deliverable/binutils-gdb.git] / gdbsupport / job-control.h
CommitLineData
15652511
SDJ
1/* Job control and terminal related functions, for GDB and gdbserver
2 when running under Unix.
3
b811d2c2 4 Copyright (C) 1986-2020 Free Software Foundation, Inc.
15652511
SDJ
5
6 This file is part of GDB.
7
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3 of the License, or
11 (at your option) any later version.
12
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with this program. If not, see <http://www.gnu.org/licenses/>. */
20
1a5c2598
TT
21#ifndef COMMON_JOB_CONTROL_H
22#define COMMON_JOB_CONTROL_H
15652511
SDJ
23
24/* Do we have job control? Can be assumed to always be the same
25 within a given run of GDB. Use in gdb/inflow.c and
268a13a5 26 gdbsupport/common-inflow.c. */
15652511
SDJ
27extern int job_control;
28
29/* Set the process group of the caller to its own pid, or do nothing
30 if we lack job control. */
31extern int gdb_setpgid ();
32
33/* Determine whether we have job control, and set variable JOB_CONTROL
34 accordingly. This function must be called before any use of
35 JOB_CONTROL. */
36extern void have_job_control ();
37
1a5c2598 38#endif /* COMMON_JOB_CONTROL_H */
This page took 0.246675 seconds and 4 git commands to generate.