Fix a potential illegal memory access in the BFD library when parsing a corrupt DWARF...
[binutils-gdb.git] / gdbsupport / job-control.h
blob8cb6d5e1b0f42032b21b91dba421d41e8ee6c1bc
1 /* Job control and terminal related functions, for GDB and gdbserver
2 when running under Unix.
4 Copyright (C) 1986-2023 Free Software Foundation, Inc.
6 This file is part of GDB.
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.
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.
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/>. */
21 #ifndef COMMON_JOB_CONTROL_H
22 #define COMMON_JOB_CONTROL_H
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
26 gdbsupport/common-inflow.c. */
27 extern int job_control;
29 /* Set the process group of the caller to its own pid, or do nothing
30 if we lack job control. */
31 extern int gdb_setpgid ();
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. */
36 extern void have_job_control ();
38 #endif /* COMMON_JOB_CONTROL_H */