gdb: add setter/getter for inferior cwd
authorSimon Marchi <simon.marchi@polymtl.ca>
Sat, 26 Jun 2021 01:57:56 +0000 (21:57 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Fri, 23 Jul 2021 19:38:54 +0000 (15:38 -0400)
commit90cc31c9e59a75122c2371fdf43f53d91e6ad5d6
treee8cd9164ce1dd466ab94de2040f5d8172c3b84bc
parente51695253e5594ea7fda3c52aa9126ee4f9e9fc2
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
gdb/infcmd.c
gdb/inferior.h
gdb/remote.c
gdb/windows-nat.c