diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2020-05-25 11:38:11 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2020-05-25 11:38:26 -0400 |
commit | c699004a29093c69fc6aeed04bbd838362666676 (patch) | |
tree | b435a084f110bc9468f188dacb6f25f80f4a16d2 /gdb/tic6x-tdep.c | |
parent | 92651b1d91a124b8c14e45adc8d007b659cc92c2 (diff) | |
download | gdb-c699004a29093c69fc6aeed04bbd838362666676.zip gdb-c699004a29093c69fc6aeed04bbd838362666676.tar.gz gdb-c699004a29093c69fc6aeed04bbd838362666676.tar.bz2 |
gdbsupport: Adapt construct_inferior_arguments
Allow construct_inferior_arguments to handle zero args
and have it return a std::string, similar to how
stringify_argv in gdbsupport/common-utils does.
Also, add a const qualifier for the second parameter,
since it is only read, not written to.
The intention is to replace existing uses of
stringify_argv by construct_inferior_arguments
in a subsequent step, since construct_inferior_arguments
properly handles special characters, while stringify_argv
doesn't.
gdbsupport/ChangeLog:
* common-inferior.cc, common-inferior.h (construct_inferior_arguments):
Adapt to handle zero args and return a std::string.
Adapt call site.
Change-Id: I126c4390a1018c7527b0b8fd545252ab8a5a7adc
Diffstat (limited to 'gdb/tic6x-tdep.c')
0 files changed, 0 insertions, 0 deletions