]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/common/common-inferior.h
Share fork_inferior et al with gdbserver
[thirdparty/binutils-gdb.git] / gdb / common / common-inferior.h
1 /* Functions to deal with the inferior being executed on GDB or
2 GDBserver.
3
4 Copyright (C) 1986-2017 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_INFERIOR_H
22 #define COMMON_INFERIOR_H
23
24 /* Return the exec wrapper to be used when starting the inferior, or NULL
25 otherwise. */
26 extern const char *get_exec_wrapper ();
27
28 /* Return the name of the executable file as a string.
29 ERR nonzero means get error if there is none specified;
30 otherwise return 0 in that case. */
31 extern char *get_exec_file (int err);
32
33 #endif /* ! COMMON_INFERIOR_H */