Commit Graph

1823 Commits

Author SHA1 Message Date
moshee
f0f6fa6b2e cmd/dlv: fix bad format string 2015-08-12 09:26:30 -05:00
Derek Parker
a336c92a8b Fix: Improve handling of soft signals on darwin
Fixes a bug on OSX where, if the debugged process spawned a child, when
that process received a SIGCHLD it would cause Delve to hang.

Fixes #197
2015-08-11 19:20:25 -05:00
Derek Parker
3f4476da02 Add verbose flag to codesigned tests 2015-08-11 19:10:34 -05:00
Derek Parker
d9d3118aa0 Fix: Parse rc version strings 2015-08-11 08:37:27 -05:00
Derek Parker
ed9b7769fd Remove unused 'singleStepping' state on Process
We don't care, at the process level, whether or not we're single
stepping. That state is really only relevant at the thread level.
2015-08-11 08:20:44 -05:00
Derek Parker
8aa73bcf21 Promote info subcommands
There's no reason to hang a bunch of commands off of the `info` command.
Promoted all commands to be top level.
2015-08-10 21:31:27 -05:00
Derek Parker
f43007c55e Fix: Handle inability to find return addr
Fixes a code path where stacktrace returns < 2 locations and
thread.ReturnAddress would panic. Now returns an error.
2015-08-10 10:45:33 -05:00
aarzilli
8de1a307ee Fix: track recurseLevel in readArray/readSlice
This fix helps avoid infinite recursion.
2015-08-09 20:37:47 -05:00
aarzilli
fe054b2f0f EvalVariable should also evaluate package variables 2015-08-09 20:37:47 -05:00
aarzilli
fd08e96b24 Fix: rpc.(*RPCClient).EvalVariableFor
Original implementation was passing the wrong argument.
2015-08-09 20:37:11 -05:00
aarzilli
8e8d2660ef Improve commands which take a location spec
Breakpoints, tracepoints, etc.. take a location spec as input. This
patch improves the expressiveness of that API. It allows:

* Breakpoint at line
* Breakpoint at function (handling package / receiver smoothing)
* Breakpoint at address
* Breakpoint at file:line
* Setting breakpoint based off regexp
2015-08-08 14:41:48 -05:00
Derek Parker
e8310e186c Make check-cert target 2015-08-08 14:30:43 -05:00
Derek Parker
869884b9ab Bind to less used port in test 2015-08-08 14:30:23 -05:00
Derek Parker
e940fa1274 Remove dup [flags] output for trace subcommand
When running `dlv help trace` the help output would display:

dlv trace [regexp] [flags] [flags]

This patch removes the [flags] duplication.
2015-08-05 13:20:39 -05:00
Derek Parker
af55ef3522 Process.Kill: Do not kill if process already exited 2015-08-04 08:32:43 -05:00
Derek Parker
4bae873705 Add travis CI 2015-08-04 08:03:35 -05:00
Derek Parker
d06abe3f2f Debugger.Restart: Preserve breakpoints
Fixes #188
2015-08-02 00:08:48 -05:00
Derek Parker
ee3d7e8d55 proc/proc_linux.go: Misc code cleanup 2015-08-01 23:31:50 -05:00
Derek Parker
8034b7c038 Process.Kill: Use PID in wait 2015-08-01 23:18:20 -05:00
Derek Parker
6bac0ae0b2 Remove superfluous comment and misc cleanup 2015-08-01 23:14:06 -05:00
Derek Parker
fd407f8579 Fix Linux compilation error 2015-08-01 23:06:34 -05:00
Derek Parker
08dddb6b70 Update README 2015-08-01 21:55:02 -05:00
Derek Parker
286f8ed22e Return result directly from single_step 2015-08-01 21:46:42 -05:00
Derek Parker
93dcd40cee Refactor read/write memory code 2015-08-01 21:43:03 -05:00
Derek Parker
5e5f5aff30 Cleanup comment in setBreakpoint 2015-08-01 21:19:14 -05:00
Derek Parker
1f473241c7 Refactor setBreakpoint code 2015-08-01 21:16:58 -05:00
Derek Parker
392abbda09 Conditionally set ld flags in Makefile for Go version
Passing the '-s' flag to the linker in < Go 1.5 emits an error and
produces a binary that, once codesigned (I believe) will cause an
immediate bus error and terminate.
2015-07-31 13:43:35 -05:00
Derek Parker
e2d92a1104 Extract constant for breakpoint line in test 2015-07-30 12:11:10 -05:00
Michael Gehring
2d79acd2fe more variable test fixes 2015-07-30 18:00:23 +02:00
Michael Gehring
9f3f77ce31 add complex types to TestVariableEvaluation 2015-07-30 17:37:17 +02:00
Michael Gehring
720a592348 Make info locals understand/print complex types
Fixes #192
2015-07-30 17:07:08 +02:00
Derek Parker
5ede17491e Refactor terminal exit command 2015-07-29 18:19:06 -05:00
Joe Shaw
d275393488 Add bt alias for stack, quit and q for exit
Fixes #182
2015-07-29 18:04:23 -05:00
Derek Parker
e5b20612e5 Reformat output of 'help' command 2015-07-29 17:49:23 -05:00
Joe Shaw
6680648ef8 fix dlv version typo 2015-07-29 09:29:04 -04:00
Derek Parker
e9b3a9eac1 Remove duplicate command alias 2015-07-29 08:21:35 -05:00
Derek Parker
a506bb7d8e Finish support for Go1.5beta2 2015-07-28 18:56:55 -05:00
Derek Parker
bcbda1dba3 Rename version.After to version.AfterOrEqual 2015-07-28 15:42:56 -05:00
aarzilli
311da7c314 bugfix: version string parsing support for beta versions and tolerance for devel versions
fixes issue #179
2015-07-28 15:15:45 -05:00
Derek Parker
8cd8118137 Update Makefile build flags
For more information see: https://github.com/golang/go/issues/11887
2015-07-28 14:28:03 -05:00
Derek Parker
77604eff81 Improve code documentation 2015-07-28 13:37:55 -05:00
Derek Parker
15b7c6e562 Send kill signal to process group on Linux 2015-07-28 13:31:54 -05:00
Derek Parker
544c4ccc3d Add more documentation around darwin fork_exec 2015-07-28 12:23:36 -05:00
Derek Parker
a6fc8d11a7 Create new session/process grp for forked process 2015-07-28 12:20:07 -05:00
aarzilli
a0115e3a15 bugfix: Issue #170 (partial) set function breakpoints on the first instruction
the entry point of a function is the beginning of the prologue, which can be run multiple times for each invocation of a function if the stack needs to be expanded or the scheduler needs to be run.
2015-07-28 08:16:20 -05:00
aarzilli
a353735715 Breakpoints are hit multiple times or skipped sometimes (tests) 2015-07-28 08:13:46 -05:00
Derek Parker
d6920d96d6 Update README 2015-07-28 08:03:57 -05:00
Derek Parker
051ea39f2c Remove superfluous Kill method call in test
The process will already be killed via withTestProcess
2015-07-28 07:54:26 -05:00
Derek Parker
c0ba4681c9 Use boolean zero value instead of setting false 2015-07-28 07:52:29 -05:00
Derek Parker
510133ae5a Return after error parsing version string 2015-07-28 07:51:09 -05:00