delve/service/debugger
Yasushi Saito c5c41f6352 command/terminal: allow restart to change process args (#1060)
* command/terminal: allow restart to change process args

Add -args flag to "restart" command. For example, "restart -args a b c" will
pass args a b c to the new process.

Add "-c" flag to pass the checkpoint name. This is needed to disambiguate the
checkpoint name and arglist.

Reverted unnecessary changes.

* Applied reviewer comments.

Vendored argv.

Change the syntax of restart. When the target is is in recording mode, it always
interprets the args as a checkpoint. Otherwise, it interprets the args as
commandline args. The flag "-args" is still there, to handle the case in which
the user wants to pass an empty args on restart.

* Add restartargs.go.

Change "restart -args" to "restart -noargs" to clarify that this flag is used to
start a process with an empty arg.
2018-01-18 14:16:11 -08:00
..
debugger_darwin.go Add support for Windows. 2016-01-20 19:06:31 -08:00
debugger_linux.go Fix various issues detected by megacheck (#880) 2017-06-29 11:15:59 -07:00
debugger_windows.go Add support for Windows. 2016-01-20 19:06:31 -08:00
debugger.go command/terminal: allow restart to change process args (#1060) 2018-01-18 14:16:11 -08:00
locations_test.go Move top-level packages into pkg 2017-02-08 12:17:19 -08:00
locations.go debugger/locations: locspec "+0" should always evaluate to the current PC 2017-12-18 10:30:53 -08:00