diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2020-05-25 11:37:44 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2020-05-25 11:38:02 -0400 |
commit | 92651b1d91a124b8c14e45adc8d007b659cc92c2 (patch) | |
tree | 94d42142aaa4c08c436b28f37ca2582782fa5ba2 /gdb/inferior.h | |
parent | 42cf184456fb1470835b6dccd536c2d74461e7b6 (diff) | |
download | gdb-92651b1d91a124b8c14e45adc8d007b659cc92c2.zip gdb-92651b1d91a124b8c14e45adc8d007b659cc92c2.tar.gz gdb-92651b1d91a124b8c14e45adc8d007b659cc92c2.tar.bz2 |
gdb: Move construct_inferior_arguments to gdbsupport
This moves the function construct_inferior_arguments from
gdb/inferior.h and gdb/infcmd.c to gdbsupport/common-inferior.{h,cc}.
While at it, also move the function's comment to the header file
to align with current standards.
The intention is to use it from gdbserver in a follow-up commit.
gdb/ChangeLog:
* infcmd.c, inferior.h: (construct_inferior_arguments):
Moved function from here to gdbsupport/common-inferior.{h,cc}
gdbsupport/ChangeLog:
* common-inferior.h, common-inferior.cc: (construct_inferior_arguments):
Move function here from gdb/infcmd.c, gdb/inferior.h
Change-Id: Ib9290464ce8c0872f605d8829f88352d064c30d6
Diffstat (limited to 'gdb/inferior.h')
-rw-r--r-- | gdb/inferior.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/gdb/inferior.h b/gdb/inferior.h index 1ac5136..95af474 100644 --- a/gdb/inferior.h +++ b/gdb/inferior.h @@ -184,8 +184,6 @@ extern void child_interrupt (struct target_ops *self); STARTUP_INFERIOR. */ extern ptid_t gdb_startup_inferior (pid_t pid, int num_traps); -extern char *construct_inferior_arguments (int, char **); - /* From infcmd.c */ /* Initial inferior setup. Determines the exec file is not yet known, |