gdb/riscv: Use legacy register numbers in default target description
[external/binutils.git] / gdb / common / job-control.h
1 /* Job control and terminal related functions, for GDB and gdbserver
2    when running under Unix.
3
4    Copyright (C) 1986-2019 Free Software Foundation, Inc.
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
21 #ifndef COMMON_JOB_CONTROL_H
22 #define COMMON_JOB_CONTROL_H
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
26    common/common-inflow.c.  */
27 extern 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.  */
31 extern 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.  */
36 extern void have_job_control ();
37
38 #endif /* COMMON_JOB_CONTROL_H */