Commit Graph

1379 Commits

Author SHA1 Message Date
Dan Mace
ecb8e8a42a Consolidate test support/setup
Add a test support package which allows shared test functionality
for both the unit and integration tests.

Tests importing the proctl/test package will gain access to a special
test entrypoint which precompiles fixtures and makes them available
to tests.
2015-05-04 17:44:40 -05:00
Derek Parker
794d5b1e19 Revert errors.New change 2015-05-04 17:31:13 -05:00
epipho
0358c174ad Moving history file to .dlv config directory 2015-05-04 17:11:08 -05:00
Derek Parker
471615fb0b Use symbol table for function lookup in evaluation 2015-05-03 14:11:17 -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
ca2508af6b Suppress output of HTTP error from client
Introduce a client error type which preserves HTTP error information
but which doesn't render the HTTP details by default.
2015-05-02 14:38:38 -05:00
Derek Parker
1ad66660a1 Prefer errors.New for unformatted errors 2015-05-01 16:27:29 -05:00
Derek Parker
6cadeb41fc Pass kill signal to ptrace_detach 2015-05-01 15:50:29 -05:00
Derek Parker
e8edb043d7 Do not print notifications for new threads
This information is hardly going to be useful to a user of Delve and if
the user really needs information on new threads they can simply using
the provided commands to list and switch between threads.
2015-05-01 15:37:17 -05:00
Derek Parker
9040ec1af1 Only detach if not killing process 2015-05-01 15:14:58 -05:00
Derek Parker
c414c72ec9 Return regs from saveRegisters function 2015-05-01 08:34:09 -05:00
Derek Parker
f7632eb5b0 Restore stack after curG function call 2015-04-30 19:52:28 -05:00
Derek Parker
f9c64d30c2 Clean up documentation 2015-04-30 08:39:04 -05:00
Derek Parker
0556eb925d Code organization 2015-04-30 08:38:00 -05:00
Derek Parker
73a5c7c246 Fix: replay last command on empty string 2015-04-29 23:38:01 -05:00
Derek Parker
51a9aa71c6 Fix: Exit on EOF 2015-04-29 23:21:27 -05:00
Dan Mace
3ffbe2d7b7 Precompile fixtures 2015-04-29 21:05:41 -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
zhee
288248d048 Fix typo 2015-04-30 02:28:23 +09:00
Derek Parker
2b5a9155e6 Use Arch struct for arch specific values 2015-04-29 12:07:27 -05:00
Derek Parker
21dca7efeb Use seperate ID counter for temp breakpoints 2015-04-29 08:17:35 -05:00
Derek Parker
19a98fb49c clean up error message 2015-04-28 09:03:43 -05:00
Derek Parker
bb48ad52d3 Move generic register structs/funcs to own file 2015-04-28 09:01:28 -05:00
Dan Mace
df2fb5f37d Make TestHalt deterministic
Eliminate a race condition in TestHalt where the RequestManualStop
call can precede the Continue call, causing the test to sporadically
fail.
2015-04-26 07:31:28 -04:00
Derek Parker
92c1ae3a1e Refactor Darwin Launch 2015-04-25 15:13:00 -05:00
Derek Parker
efd1f391f2 Fix: Darwin single step state setting 2015-04-25 14:53:55 -05:00
Derek Parker
fa9fe1a679 Improve RequestManualStop 2015-04-25 14:25:48 -05:00
Derek Parker
da688b8184 Handle runtime.Breakpoint 2015-04-25 14:13:35 -05:00
Matt Butcher
6c7363b0ed Improved help text for dlv. 2015-04-25 13:09:53 -05:00
Derek Parker
173ee20097 Fix: properly handle random signals
* Ignore signals we do not care about
* Implement custom fork/exec for Darwin to convert signals to mach
  exceptions
2015-04-25 13:02:45 -05:00
Derek Parker
047a91af5b Improve 'next' algorithm 2015-04-25 09:39:54 -05:00
Derek Parker
16064ce66e Refactor save/restore register funcs 2015-04-23 11:40:20 -05:00
Derek Parker
7073e1c7d0 Refactor next and trapWait 2015-04-23 11:39:46 -05:00
Derek Parker
91ebc8d132 Make trapWait method on DebuggedProcess 2015-04-23 10:42:28 -05:00
Derek Parker
6df90f325d Rename CurrentPC -> PC 2015-04-23 10:40:33 -05:00
Derek Parker
383e9c1c37 Cleanup reassignments 2015-04-23 10:30:27 -05:00
Derek Parker
cd603aee8c Improve docs 2015-04-23 09:17:14 -05:00
Derek Parker
109e5ab109 Copy instructions for FDE 2015-04-23 09:16:44 -05:00
Derek Parker
b86f227ab6 Further improve documentation 2015-04-22 20:01:25 -05:00
Derek Parker
ce01e0f4bc Improve documentation around internal types 2015-04-22 11:42:58 -05:00
Derek Parker
8a7c6a41b8 Code organization 2015-04-20 16:58:49 -05:00
Derek Parker
48d0703b4f Improve 'next' impl for non-go next'ing 2015-04-20 13:03:22 -05:00
Derek Parker
58db8322ef Improve chan / goroutine coordination
* Properly find next source line for goroutines blocked in chanrecv
* Refactor breakpoint clearing
* Refactor temp breakpoint setting
2015-04-19 17:15:34 -05:00
Derek Parker
ab5aec4365 Update README 2015-04-16 11:50:27 -05:00
Derek Parker
92e0cb9f8b Rename method for clarity 2015-04-15 14:09:05 -05:00
Derek Parker
8ebab600f0 Copy InitialInstructions to prevent mutation 2015-04-15 14:08:18 -05:00
Derek Parker
20c9e92cec Improve handling of manual stops 2015-04-13 17:17:06 -05:00
Derek Parker
0d5e0dbd4a Update README 2015-04-13 09:53:58 -05:00
Derek Parker
e5a4a5ae9b Set CurrentBreakpoint on DebuggedProcess 2015-04-09 10:01:58 -05:00
Derek Parker
42a57ad285 Move print goroutine info into command
* DebuggedProcess method: `PrintGoroutinesInfo` -> `GoroutinesInfo`
* `goroutines` command in command/command.go now responsible for
  printing info.
2015-04-09 09:53:02 -05:00