Move gdb_notifier comment
[deliverable/binutils-gdb.git] / gdbsupport / common-inferior.h
CommitLineData
2090129c
SDJ
1/* Functions to deal with the inferior being executed on GDB or
2 GDBserver.
3
b811d2c2 4 Copyright (C) 1986-2020 Free Software Foundation, Inc.
2090129c
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_COMMON_INFERIOR_H
22#define COMMON_COMMON_INFERIOR_H
2090129c
SDJ
23
24/* Return the exec wrapper to be used when starting the inferior, or NULL
25 otherwise. */
26extern 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. */
d9fa87f4 31extern const char *get_exec_file (int err);
2090129c 32
d092c5a2
SDJ
33/* Return the inferior's current working directory. If nothing has
34 been set, then return NULL. */
35extern const char *get_inferior_cwd ();
36
bc3b087d
SDJ
37/* Set the inferior current working directory. If CWD is NULL, unset
38 the directory. */
39extern void set_inferior_cwd (const char *cwd);
40
80fd2826
TT
41/* Whether to start up the debuggee under a shell.
42
43 If startup-with-shell is set, GDB's "run" will attempt to start up
44 the debuggee under a shell. This also happens when using GDBserver
45 under extended remote mode.
46
47 This is in order for argument-expansion to occur. E.g.,
48
49 (gdb) run *
50
51 The "*" gets expanded by the shell into a list of files.
52
53 While this is a nice feature, it may be handy to bypass the shell
54 in some cases. To disable this feature, do "set startup-with-shell
55 false".
56
57 The catch-exec traps expected during start-up will be one more if
58 the target is started up with a shell. */
59extern bool startup_with_shell;
60
1a5c2598 61#endif /* COMMON_COMMON_INFERIOR_H */
This page took 0.24951 seconds and 4 git commands to generate.