Support Intel SM4 AVX10.2 extension
[binutils-gdb.git] / gdbsupport / common-inferior.h
blobcc625aec2368ebaacd3b224be2cd3231d914f2eb
1 /* Functions to deal with the inferior being executed on GDB or
2 GDBserver.
4 Copyright (C) 1986-2024 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_COMMON_INFERIOR_H
22 #define COMMON_COMMON_INFERIOR_H
24 #include "gdbsupport/array-view.h"
26 /* Return the exec wrapper to be used when starting the inferior, or NULL
27 otherwise. */
28 extern const char *get_exec_wrapper ();
30 /* Return the inferior's current working directory.
32 If it is not set, the string is empty. */
33 extern const std::string &get_inferior_cwd ();
35 /* Whether to start up the debuggee under a shell.
37 If startup-with-shell is set, GDB's "run" will attempt to start up
38 the debuggee under a shell. This also happens when using GDBserver
39 under extended remote mode.
41 This is in order for argument-expansion to occur. E.g.,
43 (gdb) run *
45 The "*" gets expanded by the shell into a list of files.
47 While this is a nice feature, it may be handy to bypass the shell
48 in some cases. To disable this feature, do "set startup-with-shell
49 false".
51 The catch-exec traps expected during start-up will be one more if
52 the target is started up with a shell. */
53 extern bool startup_with_shell;
55 /* Compute command-line string given argument vector. This does the
56 same shell processing as fork_inferior. */
57 extern std::string
58 construct_inferior_arguments (gdb::array_view<char * const>);
60 #endif /* COMMON_COMMON_INFERIOR_H */