gdb: make inferior::m_args an std::string
authorSimon Marchi <simon.marchi@polymtl.ca>
Fri, 25 Jun 2021 21:54:55 +0000 (17:54 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Fri, 23 Jul 2021 19:38:54 +0000 (15:38 -0400)
commitfd2dec2a45a73154d9824071ebb8664a39a69174
tree2297cdb9fa147b25a87d354a0f7e1452f71a64d3
parent90cc31c9e59a75122c2371fdf43f53d91e6ad5d6
gdb: make inferior::m_args an std::string

With the current code, both a NULL pointer and an empty string can mean
"no arguments".  We don't need this distinction.  Changing to a string
has the advantage that there is now a single state for that (an empty
string), which makes the code a bit simpler in my opinion.

Change-Id: Icdc622820f7869478791dbaa84b4a1c7fec21ced
gdb/elf-none-tdep.c
gdb/fbsd-tdep.c
gdb/infcmd.c
gdb/inferior.h
gdb/linux-tdep.c
gdb/procfs.c