gdb: make inferior::m_cwd an std::string
authorSimon Marchi <simon.marchi@polymtl.ca>
Fri, 25 Jun 2021 22:07:54 +0000 (18:07 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Fri, 23 Jul 2021 19:38:54 +0000 (15:38 -0400)
commit11bd012ed256688f43d71dcc531c2f105a9c55dd
treeeeff398be94163b59fc0f261615449bd9dbeaeb1
parentfd2dec2a45a73154d9824071ebb8664a39a69174
gdb: make inferior::m_cwd an std::string

Same idea as the previous patch, but for m_cwd.

To keep things consistent across the board, change get_inferior_cwd as
well, which is shared with GDBserver.  So update the related GDBserver
code too.

Change-Id: Ia2c047fda738d45f3d18bc999eb67ceb8400ce4e
gdb/infcmd.c
gdb/inferior.h
gdb/nat/fork-inferior.c
gdb/remote.c
gdbserver/inferiors.cc
gdbserver/inferiors.h
gdbserver/server.cc
gdbsupport/common-inferior.h