Commit Graph

59 Commits

Author SHA1 Message Date
Derek Parker
e49c81cc5d
*: Fix ppc64le test runs (#3460)
We must pass the build tag through during the 'vet' check, and
additionally there was some extra commands at the end of test_linux.sh
that were not necessary.
2023-08-11 08:51:28 -07:00
Alessandro Arzilli
dc5d8de320
proc: add waitfor option to attach (#3445)
Adds a waitfor option to 'dlv attach' that waits for a process with a
name starting with a given prefix to appear before attaching to it.

Debugserver on macOS does not support follow-fork mode, but has this
feature instead which is not the same thing but still helps with
multiprocess debugging somewhat.
2023-08-09 10:30:22 -07:00
Derek Parker
a88c9bde4a
pkg/proc: add build scripts & docker image for ebpf (#2847)
Adds a few build scripts and a container image for reproducible builds
of the ebpf programs.
2021-12-30 09:04:59 +01:00
Derek Parker
cd9e6c02a6
*: Replace libbpfgo with cilium/ebpf (#2771) 2021-11-03 16:58:04 +01:00
Derek Parker
1b2f7f0051
pkg/proc: Parse Goroutine ID in eBPF tracer (#2654)
This patch enables the eBPF tracer backend to parse the ID of the
Goroutine which hit the uprobe. This implementation is specific to AMD64
and will have to be generalized further in order to be used on other
architectures.
2021-08-24 14:53:27 +02:00
Derek Parker
10406f96d5
*: Initial eBPF tracing support (#2625) 2021-07-31 17:16:26 +02:00
Derek Parker
85c34e47ee *: mv scripts _scripts
Instead of selectively excluding this directory, hide it from the go
tooling by applying the "_" prefix.
2020-03-28 20:28:51 +01:00
Derek Parker
ad75f78c4e
*: Fix go vet complaints (#1935)
* *: Fix go vet struct complaints

* *: Fix struct vet issue on linux

* *: Ignore proc/native in go vet check

We have to do some unsafe pointer manipulation that will never make go
vet happy within the proc/native package. Ignore it for runs of go vet.
2020-03-18 09:25:32 -07:00
Sylvain Rabot
8db632e55b
*: Fix typo in Makefile (#1869)
Signed-off-by: Sylvain Rabot <s.rabot@lectra.com>
2020-02-18 10:02:04 -08:00
chainhelen
58a7c84e01 scripts: Add 'make uninstall' command
This change adds the `make uninstall` command which will uninstall delve.
2019-09-13 11:17:28 +02:00
aarzilli
087431f029 Makefile: replace makefile with a script
We were using our makefile not for the intended purpose of makefiles
but to multiplex a series of small scripts.
We can easily achieve the same result in a more reasonable programming
language and as a bonus we don't need to install a version of make on
windows anymore.
Additionally our test script had become fairly complicated and will
become even more complicated when testing of PIE buildmode is
introduced.
Allows the tests to run on Windows without having to install Mingw
(although we still want it installed so that we can run cgo tests on
Windows).

Fixes building when GOPATH isn't set.

Fixes #759
2018-09-18 12:06:25 -07:00
Josh Soref
1d3b41f64e all: Spelling 2018-03-20 11:05:35 +01:00
Koichi Shiraishi
926a6107ff Makefile: use go env GOPATH for install path
As of Go 1.8, allows empty GOPATH environment variable.
2017-12-20 16:34:11 -08:00
aarzilli
26df58af7e Makefile: disable test caching 2017-12-13 12:18:18 -08:00
aarzilli
2079562b25 proc/tests: fix intermittent test stall on windows
While we are waiting for the process to exit in native.(*Process).Kill
we could receive queued exception events, those must be continued or
the wait will never finish.
2017-08-30 11:40:17 -07:00
aarzilli
e63b3eb6fd Makefile: run tests sequentially
Our tests are not designed to be run in parallel, for example there are
multiple tests in disparate packages all trying to run textnextnethttp
which will compete for access to port 9191, we shouldn't let tests run
in parallel.
2017-08-01 11:20:25 -06:00
Alessandro Arzilli
0cea7ccc23 cmd/dlv: bugfix: make version command actually print revision number (#926) 2017-07-20 12:55:32 -06:00
Derek Parker
52855040ba *: Update vendor 2017-05-27 14:12:31 +02:00
Alessandro Arzilli
a843f7944e proc/gdbserial: mozilla rr support (#804)
Implements #727
2017-05-05 15:17:52 -07:00
Alessandro Arzilli
24b20099aa makefile: use git's $Id$ instead of setting ver.Build in makefile (#807) 2017-04-28 10:14:33 -07:00
aarzilli
c8d9352522 proc: Implement target.Interface for gdbserver backend 2017-04-18 13:25:11 -07:00
Hyang-Ah Hana Kim
ab7367ed2b Minor fixes to make some tests build and run (#752)
* cmd/dlv: fall back to go env GOPATH when GOPATH envvar is unset.

Since Go 1.8, GOPATH environment variable has a default value if the
environment variable is unset so not setting GOPATH is perfectly ok.
Depend on `go env` command to query Go related environment variable.

* build: update references to moved packages
2017-03-13 10:59:34 -07:00
Justin Clift
a8d11f02a8 Bash script to generate & install signing certificate for delve (#760) 2017-03-13 10:59:10 -07:00
Alessandro Arzilli
74eadea71a proc: fix proc.Launch, Makefile on macOS (#734)
Fixes #732
2017-02-13 12:25:22 -08:00
aarzilli
63b8fa8269 proc: support for ver. 10.12.1 the OS formerly known as Mac OS X
Fixes #645
2016-12-17 11:07:43 +01:00
aarzilli
ee6d2734c9 tests: fix TestBuild on macOS, windows 2016-12-17 10:53:30 +01:00
Alessandro Arzilli
82ece54737 docs: Documentation for command line frontend (#518)
* documentation: copied old documentation from wiki

* command: better online documentation

Help without arguments prints just a short summary for each command,
help followed by a command prints the command's syntax and a longer
explanation.

* documentation: automatically generate Documentation/cli/README.md
2016-04-29 11:58:19 -07:00
Evan Lin
7b7387fd1e makefile: Check $GOBIN before codesign, otherwise use $GOPATH/bin (#504)
Fixes #502
2016-04-24 10:26:12 -07:00
John Aylward
5fe0d79e01 Fixes quote of certificate 2016-02-28 20:33:09 -05:00
Derek Parker
0abc772023 build: Add git sha to version output 2015-12-15 08:38:22 +01:00
Derek Parker
4a652b8f91 dev: Fixup Makefile and testsign script 2015-12-13 13:17:56 -08:00
Derek Parker
b4fd5718d4 make: Fix 'build' and 'install' targets
Fixes #273
2015-10-09 21:39:17 -07:00
Derek Parker
5e31400a87 travis: Fix Makefile for Linux travis builds 2015-10-09 18:03:24 -07:00
Derek Parker
10910929b8 all: Use -exec flag to codesign test binary on OSX
Replaces a lot of ugly Makefile nonsense with a script that codesigns
the test binary before it runs. Only applicable to OSX test runs.
2015-10-09 17:56:09 -07:00
Derek Parker
f2e5214e1b all: Makefile refactor 2015-09-30 18:32:08 -07:00
Derek Parker
4e6d69e744 all: Vendor with Godeps & GO15EXPERIMENT
Use godeps to vendor dependencies and the normal go toolchain, with
GO15VENDOREXPERIMENT=1 set to properly vendor dependencies for reproducible
builds.
2015-09-30 18:25:02 -07:00
Derek Parker
c91ca831b7 build: Always pass ldflags to builds on OSX
Previously, 'ldflags' were added to the compiler invocation based on the
version of Go the user was running. It seems to make more sense to
simply always pass along the flags on Darwin (due to the bug mentioned
in the comment above this line in the diff) as that is less brittle than
branching on the Go version, and yet will not break current users /
developers work flow.
2015-09-25 17:19:09 -07:00
Derek Parker
cf105863a7 Skip dependency install with SKIP_DEPS env var 2015-08-28 07:59:22 -05:00
Tyler Bunnell
be2d9c3a84 Add config file and command alias config options. 2015-08-21 14:20:23 -05:00
Derek Parker
3f4476da02 Add verbose flag to codesigned tests 2015-08-11 19:10:34 -05:00
Derek Parker
e8310e186c Make check-cert target 2015-08-08 14:30:43 -05:00
Derek Parker
4bae873705 Add travis CI 2015-08-04 08:03:35 -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
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
2f7612d4af Add command to restart process
Fixes #95
2015-07-03 15:35:22 -05:00
Derek Parker
687dc4172d Introduce JSON-RPC service 2015-06-21 21:11:30 -05:00
Derek Parker
fe23036035 Update Makefile 2015-06-12 16:21:32 -05:00
Derek Parker
bfca6114d4 Rename package proctl -> proc 2015-06-12 14:49:23 -05:00
Derek Parker
8f4f54d22a Add Makefile error for missing CERT on OSX 2015-05-19 14:44:09 -05:00
Derek Parker
7cb6480142 Improve single test run make targets for Linux 2015-05-15 15:32:47 -05:00