Rename project
This commit is contained in:
parent
6b80a726af
commit
5331dad93d
14
README.md
14
README.md
@ -1,12 +1,12 @@
|
||||
# DBG
|
||||
# Delve
|
||||
|
||||
### What is DBG?
|
||||
### What is Delve?
|
||||
|
||||
DBG is a Go debugger, written primarily in Go. It really needs a new name.
|
||||
Delve is a Go debugger, written primarily in Go.
|
||||
|
||||
### Building
|
||||
|
||||
Currently, DBG requires the following [patch](https://codereview.appspot.com/117280043/), however this change is vendored until Go 1.4 lands, so the project is go get-able.
|
||||
Currently, Delve requires the following [patch](https://codereview.appspot.com/117280043/), however this change is vendored until Go 1.4 lands, so the project is go get-able.
|
||||
|
||||
### Features
|
||||
|
||||
@ -25,19 +25,19 @@ The debugger can be launched in three ways:
|
||||
* Allow it to compile, run, and attach to a program:
|
||||
|
||||
```
|
||||
$ dbg -run
|
||||
$ dlv -run
|
||||
```
|
||||
|
||||
* Provide the name of the program you want to debug, and the debugger will launch it for you.
|
||||
|
||||
```
|
||||
$ dbg -proc path/to/program
|
||||
$ dlv -proc path/to/program
|
||||
```
|
||||
|
||||
* Provide the pid of a currently running process, and the debugger will attach and begin the session.
|
||||
|
||||
```
|
||||
$ sudo dbg -pid 44839
|
||||
$ sudo dlv -pid 44839
|
||||
```
|
||||
|
||||
Once inside a debugging session, the following commands may be used:
|
||||
|
@ -12,7 +12,7 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/derekparker/dbg/proctl"
|
||||
"github.com/derekparker/delve/proctl"
|
||||
)
|
||||
|
||||
type cmdfunc func(proc *proctl.DebuggedProcess, args ...string) error
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/derekparker/dbg/proctl"
|
||||
"github.com/derekparker/delve/proctl"
|
||||
)
|
||||
|
||||
func TestCommandDefault(t *testing.T) {
|
||||
|
@ -7,7 +7,7 @@ import (
|
||||
"bytes"
|
||||
"encoding/binary"
|
||||
|
||||
"github.com/derekparker/dbg/dwarf/util"
|
||||
"github.com/derekparker/delve/dwarf/util"
|
||||
)
|
||||
|
||||
type parsefunc func(*parseContext) parsefunc
|
||||
|
@ -6,7 +6,7 @@ import (
|
||||
"testing"
|
||||
|
||||
"github.com/davecheney/profile"
|
||||
"github.com/derekparker/dbg/dwarf/frame"
|
||||
"github.com/derekparker/delve/dwarf/frame"
|
||||
)
|
||||
|
||||
func BenchmarkParse(b *testing.B) {
|
||||
|
@ -5,7 +5,7 @@ import (
|
||||
"encoding/binary"
|
||||
"fmt"
|
||||
|
||||
"github.com/derekparker/dbg/dwarf/util"
|
||||
"github.com/derekparker/delve/dwarf/util"
|
||||
)
|
||||
|
||||
type CurrentFrameAddress struct {
|
||||
|
@ -6,8 +6,8 @@ import (
|
||||
"syscall"
|
||||
"testing"
|
||||
|
||||
"github.com/derekparker/dbg/helper"
|
||||
"github.com/derekparker/dbg/proctl"
|
||||
"github.com/derekparker/delve/helper"
|
||||
"github.com/derekparker/delve/proctl"
|
||||
)
|
||||
|
||||
func TestFindReturnAddress(t *testing.T) {
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
|
||||
"github.com/derekparker/dbg/dwarf/util"
|
||||
"github.com/derekparker/delve/dwarf/util"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
"syscall"
|
||||
"testing"
|
||||
|
||||
"github.com/derekparker/dbg/proctl"
|
||||
"github.com/derekparker/delve/proctl"
|
||||
)
|
||||
|
||||
type testfunc func(p *proctl.DebuggedProcess)
|
||||
|
6
main.go
6
main.go
@ -11,9 +11,9 @@ import (
|
||||
"strings"
|
||||
"syscall"
|
||||
|
||||
"github.com/derekparker/dbg/command"
|
||||
"github.com/derekparker/dbg/goreadline"
|
||||
"github.com/derekparker/dbg/proctl"
|
||||
"github.com/derekparker/delve/command"
|
||||
"github.com/derekparker/delve/goreadline"
|
||||
"github.com/derekparker/delve/proctl"
|
||||
)
|
||||
|
||||
type term struct {
|
||||
|
@ -14,10 +14,10 @@ import (
|
||||
"syscall"
|
||||
"unsafe"
|
||||
|
||||
"github.com/derekparker/dbg/dwarf/frame"
|
||||
"github.com/derekparker/dbg/dwarf/op"
|
||||
"github.com/derekparker/dbg/vendor/dwarf"
|
||||
"github.com/derekparker/dbg/vendor/elf"
|
||||
"github.com/derekparker/delve/dwarf/frame"
|
||||
"github.com/derekparker/delve/dwarf/op"
|
||||
"github.com/derekparker/delve/vendor/dwarf"
|
||||
"github.com/derekparker/delve/vendor/elf"
|
||||
)
|
||||
|
||||
// Struct representing a debugged process. Holds onto pid, register values,
|
||||
|
@ -6,8 +6,8 @@ import (
|
||||
"syscall"
|
||||
"testing"
|
||||
|
||||
"github.com/derekparker/dbg/helper"
|
||||
"github.com/derekparker/dbg/proctl"
|
||||
"github.com/derekparker/delve/helper"
|
||||
"github.com/derekparker/delve/proctl"
|
||||
)
|
||||
|
||||
func dataAtAddr(pid int, addr uint64) ([]byte, error) {
|
||||
|
2
vendor/elf/file.go
vendored
2
vendor/elf/file.go
vendored
@ -13,7 +13,7 @@ import (
|
||||
"io"
|
||||
"os"
|
||||
|
||||
"github.com/derekparker/dbg/vendor/dwarf"
|
||||
"github.com/derekparker/delve/vendor/dwarf"
|
||||
)
|
||||
|
||||
// TODO: error reporting detail
|
||||
|
2
vendor/elf/file_test.go
vendored
2
vendor/elf/file_test.go
vendored
@ -16,7 +16,7 @@ import (
|
||||
"runtime"
|
||||
"testing"
|
||||
|
||||
"github.com/derekparker/dbg/vendor/dwarf"
|
||||
"github.com/derekparker/delve/vendor/dwarf"
|
||||
)
|
||||
|
||||
type fileTest struct {
|
||||
|
Loading…
Reference in New Issue
Block a user