Commit Graph

39 Commits

Author SHA1 Message Date
Derek Parker
c96d0a5ab2 Add pid flag to trace subcommand 2015-07-13 19:20:37 -05:00
Derek Parker
3cee10d8bc Implement 'trace' subcommand
Allows a user to execute `dlv trace [regexp]` and Delve will execute the
program and output information on functions matching [regexp].
2015-07-12 15:20:12 -05:00
Derek Parker
c6ca18ff07 Prefer anonymous functions with return status for defers 2015-07-11 14:51:54 -05:00
Derek Parker
f848eb0d14 Update dlv help output 2015-07-11 10:31:15 -05:00
Derek Parker
1b55fa8325 Fix typo 2015-07-11 09:34:08 -05:00
Derek Parker
39dc49cd82 Bump minor version 2015-07-11 09:29:40 -05:00
Derek Parker
d75ac75195 Replace hand-rolled cli interface with Cobra 2015-07-11 09:28:08 -05:00
Derek Parker
29ed169848 Return error when invoking Delve with invalid path
Fixes #154
2015-06-26 23:05:15 -05:00
Derek Parker
7c8fd02685 Remove HTTP server/client in favor of JSON-RPC
Instead of maintaining two separate client / server implementations,
maintain only the more lightweight JSON-RPC service. The reasoning
behind the merging of the original HTTP service was ease of tooling, in
other words low barrier of entry for external clients (editor
integrations, etc...).

I believe the JSON-RPC solution still satisfies that constraint while
have the advantage of being a more lightweight solution. HTTP, while
highly supported in most modern languages, carries with it too many
features we would never take advantage of. The RPC architecture seems
a more natural approach.

The infrastructure set up during the initial HTTP service implementation
was leveraged in the JSON-RPC implementation, so if any of those
original authors are reading this commit message: thank you for that
work, it was not in vain even if though the original HTTP service is not
being removed.
2015-06-24 08:08:48 -05:00
Derek Parker
687dc4172d Introduce JSON-RPC service 2015-06-21 21:11:30 -05:00
Derek Parker
0bdbe18b2b Cleanup debug binary on exit 2015-06-13 18:16:09 -05:00
Derek Parker
228587f6ba Specify log visibility with NewServer 2015-05-08 17:26:09 -05:00
Derek Parker
4814636780 Fix: Pass args to OSX fork_exec / trim args 2015-05-08 15:28:48 -05:00
Dan Mace
064462e5b5 Support a headless server mode
Add a -headless flag which runs only the debugger server until
a SIGINT is received.
2015-05-02 14:42:47 -05:00
Dan Mace
2954e03a20 Introduce client/server separation
Refactor to introduce client/server separation, including a typed
client API and a HTTP REST server implementation.

Refactor the terminal to be an API consumer.
2015-04-29 21:05:41 -05:00
Matt Butcher
6c7363b0ed Improved help text for dlv. 2015-04-25 13:09:53 -05:00
Derek Parker
8a911d7fd2 Fix version flag 2015-03-09 09:03:54 -05:00
Derek Parker
bb4356b713 Add test sub command
Allows compiling a test binary and debugging it.
2015-03-08 22:59:37 -05:00
Derek Parker
0125e300cd Fix help formatting 2015-03-08 22:01:14 -05:00
Derek Parker
4e43b0f8c0 Use subcommands instead of flags 2015-03-08 21:26:45 -05:00
Derek Parker
5705013f73 Bump version to 0.5.0.beta
Notable changes:
* OS X support
* Pure Go readline library
* Fixes issues debugged cgo enabled programs
* Substantial refactoring / code cleanup

Fixes #3 #29 #70
2015-03-01 10:43:03 -06:00
Derek Parker
19c62d02fc Bump minor version 2015-02-04 19:23:40 -06:00
Derek Parker
b0ba87e5e1 Bump micro version 2015-01-26 15:13:27 -06:00
Derek Parker
cf672154fe Micro version bump 2015-01-16 15:50:32 -06:00
Derek Parker
7fec8251ce Refactor: move cli logic into cli client
First of a few refactors to allow multiple clients / frontends for
Delve. Current implementation now uses a cli client, but conceivably we
could have an http or socket based client as well.
2014-12-17 18:22:57 -06:00
Derek Parker
864918ab86 Version bump 2014-12-11 10:26:31 -06:00
Derek Parker
d20183a679 Rename variable 2014-12-09 12:11:47 -06:00
Derek Parker
93d62e450e Modify cl ui a bit 2014-12-02 12:40:53 -06:00
Derek Parker
d8ff93d875 Add newline between functions 2014-12-01 18:06:27 -06:00
Derek Parker
269f111822 Minor version bump 2014-11-28 20:37:08 -06:00
Derek Parker
5254c5188e Move LockOSThread into init 2014-11-23 10:22:04 -06:00
Michael Gehring
7f17a2fdeb Remove the -proc option and make it the default 2014-11-14 21:55:19 +01:00
Michael Gehring
2029001583 Allow launching target process with arguments 2014-11-14 21:55:19 +01:00
Michael Gehring
425117a3d6 Stop target process immediately after execve. 2014-11-13 18:52:13 -06:00
Derek Parker
e7c8bdca27 minor cleanup 2014-11-13 09:44:04 -06:00
Burke Libbey
9c2ab6b749 Allow ^D (EOF) to terminate the session. 2014-11-13 09:39:08 -06:00
Michael Gehring
4e6ddd724d Clear breakpoints on exit 2014-11-12 23:47:40 +01:00
Derek Parker
66186815d9 bump micro version 2014-11-11 12:11:01 -06:00
Derek Parker
af0e0286a6 Move main package to cmd for 'dlv' binary name 2014-11-10 17:48:25 -06:00