Commit Graph

22 Commits

Author SHA1 Message Date
Derek Parker
3fba1f7113 Correctly handle hardware breakpoints across threads
* Set hardware breakpoints on all existing threads
* Set hardware breakpoints on any new thread the spawns

Fixes #111
2015-06-11 22:46:06 -05:00
Derek Parker
a1d0ced6f9 Insert raw instructions for G addr in TLS
* Remove half baked CallFn implementation.
* Cleanup whitespace
* Cleanup read/write mem functions
2015-06-11 15:28:20 -05:00
Derek Parker
49667f2302 Rename thread.Process -> thread.dbp
Process is an incorrect name for the DebuggedProcess struct that the
thread is "a part" of. Also, no need to export that field.
2015-05-27 12:16:45 -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
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
91ebc8d132 Make trapWait method on DebuggedProcess 2015-04-23 10:42:28 -05:00
Derek Parker
20c9e92cec Improve handling of manual stops 2015-04-13 17:17:06 -05:00
Derek Parker
e5a4a5ae9b Set CurrentBreakpoint on DebuggedProcess 2015-04-09 10:01:58 -05:00
Derek Parker
1d99e03f83 Reduce exported members of DebuggedProcess struct 2015-04-03 11:10:35 -05:00
Derek Parker
ccad114ed1 DRY code duplicated across OSes 2015-04-03 10:52:31 -05:00
Derek Parker
e4426fa51f Return breakpoint directly from trapWait 2015-04-03 10:47:27 -05:00
Derek Parker
e7a9daf248 Return thread directly from trapWait 2015-04-03 10:32:43 -05:00
Derek Parker
86e1530524 Improve next implementation
* Better tracking of current goroutine
* More efficient, eliminates superfluous step syscalls
* Handles concurrency and thread coordination better
2015-03-31 17:12:45 -05:00
Paul Sbarra
98c054aab4 linux: Don't ask to kill a process that has exited 2015-03-28 15:03:25 -05:00
Ivar Gaitan
8b04d877a0 Handle process natural death a bit better 2015-03-06 17:03:08 -06:00
Derek Parker
c4f90625f6 Fix linux build 2015-03-01 11:02:17 -05:00
Derek Parker
ac914fe14a Organize code a bit more 2015-02-28 22:08:42 -06:00
Derek Parker
c7cc84fa83 More cleanup 2015-02-28 21:34:55 -06:00
Derek Parker
f4ec73bb62 Fix hanging issue on Linux 2015-02-28 09:05:37 -05:00
Derek Parker
27f68abebd Fix Linux panic 2015-02-27 22:35:26 -05:00
Derek Parker
450e5c4805 Fix linux compile errors 2015-02-27 17:13:35 -06:00
Derek Parker
2d2d70641e (Mostly) working on OS X 2015-02-27 15:03:06 -06:00