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
|
### 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
|
### Features
|
||||||
|
|
||||||
@ -25,19 +25,19 @@ The debugger can be launched in three ways:
|
|||||||
* Allow it to compile, run, and attach to a program:
|
* 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.
|
* 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.
|
* 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:
|
Once inside a debugging session, the following commands may be used:
|
||||||
|
@ -12,7 +12,7 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/derekparker/dbg/proctl"
|
"github.com/derekparker/delve/proctl"
|
||||||
)
|
)
|
||||||
|
|
||||||
type cmdfunc func(proc *proctl.DebuggedProcess, args ...string) error
|
type cmdfunc func(proc *proctl.DebuggedProcess, args ...string) error
|
||||||
|
@ -4,7 +4,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/derekparker/dbg/proctl"
|
"github.com/derekparker/delve/proctl"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestCommandDefault(t *testing.T) {
|
func TestCommandDefault(t *testing.T) {
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
|
|
||||||
"github.com/derekparker/dbg/dwarf/util"
|
"github.com/derekparker/delve/dwarf/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
type parsefunc func(*parseContext) parsefunc
|
type parsefunc func(*parseContext) parsefunc
|
||||||
|
@ -6,7 +6,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/davecheney/profile"
|
"github.com/davecheney/profile"
|
||||||
"github.com/derekparker/dbg/dwarf/frame"
|
"github.com/derekparker/delve/dwarf/frame"
|
||||||
)
|
)
|
||||||
|
|
||||||
func BenchmarkParse(b *testing.B) {
|
func BenchmarkParse(b *testing.B) {
|
||||||
|
@ -5,7 +5,7 @@ import (
|
|||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/derekparker/dbg/dwarf/util"
|
"github.com/derekparker/delve/dwarf/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
type CurrentFrameAddress struct {
|
type CurrentFrameAddress struct {
|
||||||
|
@ -6,8 +6,8 @@ import (
|
|||||||
"syscall"
|
"syscall"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/derekparker/dbg/helper"
|
"github.com/derekparker/delve/helper"
|
||||||
"github.com/derekparker/dbg/proctl"
|
"github.com/derekparker/delve/proctl"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestFindReturnAddress(t *testing.T) {
|
func TestFindReturnAddress(t *testing.T) {
|
||||||
|
@ -4,7 +4,7 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/derekparker/dbg/dwarf/util"
|
"github.com/derekparker/delve/dwarf/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -8,7 +8,7 @@ import (
|
|||||||
"syscall"
|
"syscall"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/derekparker/dbg/proctl"
|
"github.com/derekparker/delve/proctl"
|
||||||
)
|
)
|
||||||
|
|
||||||
type testfunc func(p *proctl.DebuggedProcess)
|
type testfunc func(p *proctl.DebuggedProcess)
|
||||||
|
6
main.go
6
main.go
@ -11,9 +11,9 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"syscall"
|
"syscall"
|
||||||
|
|
||||||
"github.com/derekparker/dbg/command"
|
"github.com/derekparker/delve/command"
|
||||||
"github.com/derekparker/dbg/goreadline"
|
"github.com/derekparker/delve/goreadline"
|
||||||
"github.com/derekparker/dbg/proctl"
|
"github.com/derekparker/delve/proctl"
|
||||||
)
|
)
|
||||||
|
|
||||||
type term struct {
|
type term struct {
|
||||||
|
@ -14,10 +14,10 @@ import (
|
|||||||
"syscall"
|
"syscall"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
|
|
||||||
"github.com/derekparker/dbg/dwarf/frame"
|
"github.com/derekparker/delve/dwarf/frame"
|
||||||
"github.com/derekparker/dbg/dwarf/op"
|
"github.com/derekparker/delve/dwarf/op"
|
||||||
"github.com/derekparker/dbg/vendor/dwarf"
|
"github.com/derekparker/delve/vendor/dwarf"
|
||||||
"github.com/derekparker/dbg/vendor/elf"
|
"github.com/derekparker/delve/vendor/elf"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Struct representing a debugged process. Holds onto pid, register values,
|
// Struct representing a debugged process. Holds onto pid, register values,
|
||||||
|
@ -6,8 +6,8 @@ import (
|
|||||||
"syscall"
|
"syscall"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/derekparker/dbg/helper"
|
"github.com/derekparker/delve/helper"
|
||||||
"github.com/derekparker/dbg/proctl"
|
"github.com/derekparker/delve/proctl"
|
||||||
)
|
)
|
||||||
|
|
||||||
func dataAtAddr(pid int, addr uint64) ([]byte, error) {
|
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"
|
"io"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/derekparker/dbg/vendor/dwarf"
|
"github.com/derekparker/delve/vendor/dwarf"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TODO: error reporting detail
|
// TODO: error reporting detail
|
||||||
|
2
vendor/elf/file_test.go
vendored
2
vendor/elf/file_test.go
vendored
@ -16,7 +16,7 @@ import (
|
|||||||
"runtime"
|
"runtime"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/derekparker/dbg/vendor/dwarf"
|
"github.com/derekparker/delve/vendor/dwarf"
|
||||||
)
|
)
|
||||||
|
|
||||||
type fileTest struct {
|
type fileTest struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user