aboutsummaryrefslogtreecommitdiff
path: root/gdbserver/inferiors.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2021-06-25 18:07:54 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2021-07-23 15:38:54 -0400
commit11bd012ed256688f43d71dcc531c2f105a9c55dd (patch)
treeeeff398be94163b59fc0f261615449bd9dbeaeb1 /gdbserver/inferiors.h
parentfd2dec2a45a73154d9824071ebb8664a39a69174 (diff)
downloadfsf-binutils-gdb-11bd012ed256688f43d71dcc531c2f105a9c55dd.zip
fsf-binutils-gdb-11bd012ed256688f43d71dcc531c2f105a9c55dd.tar.gz
fsf-binutils-gdb-11bd012ed256688f43d71dcc531c2f105a9c55dd.tar.bz2
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
Diffstat (limited to 'gdbserver/inferiors.h')
-rw-r--r--gdbserver/inferiors.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdbserver/inferiors.h b/gdbserver/inferiors.h
index 3b8959a..1e0fe67 100644
--- a/gdbserver/inferiors.h
+++ b/gdbserver/inferiors.h
@@ -154,8 +154,8 @@ void *thread_target_data (struct thread_info *);
struct regcache *thread_regcache_data (struct thread_info *);
void set_thread_regcache_data (struct thread_info *, struct regcache *);
-/* Set the inferior current working directory. If CWD is NULL, unset
+/* Set the inferior current working directory. If CWD is empty, unset
the directory. */
-void set_inferior_cwd (const char *cwd);
+void set_inferior_cwd (std::string cwd);
#endif /* GDBSERVER_INFERIORS_H */