aboutsummaryrefslogtreecommitdiff
path: root/gdb/windows-nat.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2021-06-25 21:57:56 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2021-07-23 15:38:54 -0400
commit90cc31c9e59a75122c2371fdf43f53d91e6ad5d6 (patch)
treee8cd9164ce1dd466ab94de2040f5d8172c3b84bc /gdb/windows-nat.c
parente51695253e5594ea7fda3c52aa9126ee4f9e9fc2 (diff)
downloadgdb-90cc31c9e59a75122c2371fdf43f53d91e6ad5d6.zip
gdb-90cc31c9e59a75122c2371fdf43f53d91e6ad5d6.tar.gz
gdb-90cc31c9e59a75122c2371fdf43f53d91e6ad5d6.tar.bz2
gdb: add setter/getter for inferior cwd
Add cwd/set_cwd to the inferior class, remove set_inferior_args. Keep get_inferior_args, because it is used from fork_inferior, in shared code. The cwd could eventually be passed as a parameter eventually, though, I think that would be cleaner. Change-Id: Ifb72ea865d7e6f9a491308f0d5c1595579d8427e
Diffstat (limited to 'gdb/windows-nat.c')
-rw-r--r--gdb/windows-nat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
index 05d95ea..9526149 100644
--- a/gdb/windows-nat.c
+++ b/gdb/windows-nat.c
@@ -2558,7 +2558,7 @@ windows_nat_target::create_inferior (const char *exec_file,
if (!exec_file)
error (_("No executable specified, use `target exec'."));
- const char *inferior_cwd = get_inferior_cwd ();
+ const char *inferior_cwd = current_inferior ()->cwd ();
std::string expanded_infcwd;
if (inferior_cwd != NULL)
{