gdb: Move construct_inferior_arguments to gdbsupport
authorMichael Weghorn <m.weghorn@posteo.de>
Mon, 25 May 2020 15:37:44 +0000 (11:37 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Mon, 25 May 2020 15:38:02 +0000 (11:38 -0400)
commit92651b1d91a124b8c14e45adc8d007b659cc92c2
tree94d42142aaa4c08c436b28f37ca2582782fa5ba2
parent42cf184456fb1470835b6dccd536c2d74461e7b6
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
gdb/ChangeLog
gdb/infcmd.c
gdb/inferior.h
gdbsupport/ChangeLog
gdbsupport/common-inferior.cc
gdbsupport/common-inferior.h