X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdbsupport%2Fcommon-inferior.h;h=4362934cefde8407bb42eb8569c7b7372fd1b0b0;hb=7ab967941150b2f79fc089893bf51e6bb53d245b;hp=3c8e87aee623e7237241b5a5ba96be96d80f4370;hpb=01027315f54048dbaf03ac37455c2528c72a6d9b;p=deliverable%2Fbinutils-gdb.git diff --git a/gdbsupport/common-inferior.h b/gdbsupport/common-inferior.h index 3c8e87aee6..4362934cef 100644 --- a/gdbsupport/common-inferior.h +++ b/gdbsupport/common-inferior.h @@ -21,6 +21,8 @@ #ifndef COMMON_COMMON_INFERIOR_H #define COMMON_COMMON_INFERIOR_H +#include "gdbsupport/array-view.h" + /* Return the exec wrapper to be used when starting the inferior, or NULL otherwise. */ extern const char *get_exec_wrapper (); @@ -58,4 +60,9 @@ extern void set_inferior_cwd (const char *cwd); the target is started up with a shell. */ extern bool startup_with_shell; +/* Compute command-line string given argument vector. This does the + same shell processing as fork_inferior. */ +extern std::string +construct_inferior_arguments (gdb::array_view); + #endif /* COMMON_COMMON_INFERIOR_H */