Commit Graph

1866 Commits

Author SHA1 Message Date
Derek Parker
269f111822 Minor version bump 2014-11-28 20:37:08 -06:00
Derek Parker
74defb1028 Remove unused struct 2014-11-28 20:16:46 -06:00
Derek Parker
afa3a9cc6c Remove timeoutWait due to improved scheduler handling 2014-11-26 20:45:29 -06:00
Derek Parker
16392ce609 Improve handling of Go runtime scheduler 2014-11-26 20:35:53 -06:00
Derek Parker
13a3112b6b Improve Go 1.4 support / cleanup goroutine printing 2014-11-25 20:37:43 -06:00
Derek Parker
04097af74d Avoid carrying closure around with goroutine 2014-11-25 09:22:34 -06:00
Derek Parker
36d3ecd6e1 Update documentation 2014-11-24 18:19:40 -06:00
Derek Parker
3b2b17938b Improve support for goroutine context switching
Remove any assumption that a wait syscall on a thread id after a
continue will return. Any time we continue a thread, wait for activity
from any thread, because the scheduler may well have switched contexts
on us due to syscall entrace, channel op, etc...

There are several more things to be done here including:

* Potential tracking of goroutine id as we jump around to thread
  contexts.
* Potential of selectively choosing threads to operate on based on the
  internal M data structures, ensuring that our M has an active G.

This commit partially fixes #23 and #24, however there are still some
random hangs that happen and need to be ironed out.
2014-11-24 17:57:52 -06:00
Derek Parker
5722de6d2b Improve Dwarf frame establishing function
Remove reliance on order of dwarf instructions.
2014-11-24 07:53:39 -06:00
Derek Parker
94453b46e6 Update README 2014-11-23 17:44:00 -06:00
Derek Parker
c4eadc386b Cleanup stopTheWorld arity 2014-11-23 10:44:28 -06:00
Derek Parker
5254c5188e Move LockOSThread into init 2014-11-23 10:22:04 -06:00
Derek Parker
8be3ffc774 Refactor: wrap syscall.Wait4
Wrap syscall.Wait4 and cleanup a few coordination issues.

There are still some issues here where background threads are left
sleeping. This could potentially cause weird issues. There are a few
more things I have planned to cleanup thread coordination issues.
2014-11-22 18:57:26 -06:00
Derek Parker
582833a125 minor cleanup 2014-11-21 17:10:13 -06:00
Derek Parker
32fdfd8a2d lower timeout wait 2014-11-21 17:02:43 -06:00
Derek Parker
aa4f08e18f check tgkill error 2014-11-21 17:01:14 -06:00
Derek Parker
fe24276b15 Use correct tgid for kill in timeoutWait 2014-11-21 15:44:08 -06:00
Derek Parker
6fd1fbabad Cleanup trapWait, include TODO for timeoutWait fix 2014-11-20 17:15:42 -06:00
Derek Parker
200be0e20f Update README 2014-11-15 10:55:22 -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
6d32a94cd7 Set stderr on launched processes 2014-11-14 13:52:21 -06:00
Jason Del Ponte
cdef461a60 Simplified help command message
* Remove hardcoded string and use command help message
* Include aliases in output
2014-11-14 09:49:54 -06:00
Jason Del Ponte
d54a3262d2 Added aliases to commands
Added:
- break: b
- continue: c
- step: si
- next: n
- print: p

Taken from the gdb command list

Also updated .gitignore to ignore built dlv file in cmd/dlv
2014-11-14 09:49:34 -06:00
Derek Parker
29d0cd0bde Cleanup ignored waitstatus 2014-11-13 19:08:20 -06: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
Burke Libbey
9bb601bbf6 ignore tags 2014-11-13 09:39:08 -06:00
Michael Gehring
2ce51ab92f Handle missing line info in printcontext 2014-11-13 08:43:43 -06:00
Derek Parker
03b5e30bfb Seek reader for finding goroutine info 2014-11-13 08:36:20 -06:00
Derek Parker
2ea8ff1e74 Do not panic on incorrect command arity 2014-11-12 17:40:44 -06:00
Michael Gehring
2f91684e7a Don't panic in threads if there is no info for pc 2014-11-12 17:28:28 -06:00
Michael Gehring
4e6ddd724d Clear breakpoints on exit 2014-11-12 23:47:40 +01:00
Derek Parker
48a220a73c Update README with libreadline dependency 2014-11-12 12:16:03 -06:00
Matt Self
ffeddc39a5 add exit command to help 2014-11-11 21:03:04 -07:00
Matt Self
f5b3f89a80 add exit command to docs 2014-11-11 20:41:29 -07:00
Derek Parker
2c7e083663 Fix README typo 2014-11-11 16:32:04 -06:00
Derek Parker
66186815d9 bump micro version 2014-11-11 12:11:01 -06:00
Derek Parker
dcf9f04d45 Improve variable evaluation scope
Properly scope variable evaluation to the function the traced process is
currently stopped in.
2014-11-10 21:26:13 -06:00
Derek Parker
af0e0286a6 Move main package to cmd for 'dlv' binary name 2014-11-10 17:48:25 -06:00
Derek Parker
1bae0c3c8a bump micro version 2014-11-10 12:05:28 -06:00
Derek Parker
c15fafc288 Use delve instead of dlv everywhere, for now 2014-11-10 12:04:09 -06:00
Derek Parker
76c21b1ab9 Update README 2014-11-10 08:28:53 -06:00
Derek Parker
22b661d1b1 fix readline support: window resizing 2014-11-10 07:06:33 -06:00
Derek Parker
505ae44828 cleanup 2014-11-10 07:04:05 -06:00
Derek Parker
4da0dab22f Add version info 2014-11-10 06:53:33 -06:00
Derek Parker
cb5785324d Acknowledge runtime.breakpoint 2014-11-09 18:25:42 -06:00
Derek Parker
3afce6d7a9 Update README 2014-11-09 14:19:32 -06:00
Derek Parker
95e1654466 Add goroutines to help command 2014-11-09 13:00:35 -06:00