Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
pubx
delve
提交
53f0d240
D
delve
项目概览
pubx
/
delve
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
delve
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
53f0d240
编写于
2月 08, 2017
作者:
D
Derek Parker
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Move top-level packages into pkg
上级
26ad5f1d
变更
83
隐藏空白更改
内联
并排
Showing
83 changed file
with
53 addition
and
52 deletion
+53
-52
cmd/dlv/cmds/commands.go
cmd/dlv/cmds/commands.go
+3
-3
cmd/dlv/dlv_test.go
cmd/dlv/dlv_test.go
+1
-1
cmd/dlv/main.go
cmd/dlv/main.go
+1
-1
pkg/config/config.go
pkg/config/config.go
+0
-0
pkg/dwarf/frame/entries.go
pkg/dwarf/frame/entries.go
+0
-0
pkg/dwarf/frame/entries_test.go
pkg/dwarf/frame/entries_test.go
+0
-0
pkg/dwarf/frame/expression_constants.go
pkg/dwarf/frame/expression_constants.go
+0
-0
pkg/dwarf/frame/parser.go
pkg/dwarf/frame/parser.go
+1
-1
pkg/dwarf/frame/parser_test.go
pkg/dwarf/frame/parser_test.go
+1
-1
pkg/dwarf/frame/table.go
pkg/dwarf/frame/table.go
+1
-1
pkg/dwarf/frame/testdata/frame
pkg/dwarf/frame/testdata/frame
+0
-0
pkg/dwarf/line/line_parser.go
pkg/dwarf/line/line_parser.go
+1
-1
pkg/dwarf/line/line_parser_test.go
pkg/dwarf/line/line_parser_test.go
+1
-1
pkg/dwarf/line/state_machine.go
pkg/dwarf/line/state_machine.go
+1
-1
pkg/dwarf/op/op.go
pkg/dwarf/op/op.go
+1
-1
pkg/dwarf/op/op_test.go
pkg/dwarf/op/op_test.go
+0
-0
pkg/dwarf/reader/reader.go
pkg/dwarf/reader/reader.go
+1
-1
pkg/dwarf/util/util.go
pkg/dwarf/util/util.go
+0
-0
pkg/dwarf/util/util_test.go
pkg/dwarf/util/util_test.go
+0
-0
pkg/proc/arch.go
pkg/proc/arch.go
+0
-0
pkg/proc/breakpoints.go
pkg/proc/breakpoints.go
+0
-0
pkg/proc/disasm.go
pkg/proc/disasm.go
+0
-0
pkg/proc/disasm_amd64.go
pkg/proc/disasm_amd64.go
+0
-0
pkg/proc/doc.go
pkg/proc/doc.go
+0
-0
pkg/proc/eval.go
pkg/proc/eval.go
+1
-1
pkg/proc/exc.h
pkg/proc/exc.h
+0
-0
pkg/proc/exc_user_darwin.c
pkg/proc/exc_user_darwin.c
+0
-0
pkg/proc/exec_darwin.c
pkg/proc/exec_darwin.c
+0
-0
pkg/proc/exec_darwin.h
pkg/proc/exec_darwin.h
+0
-0
pkg/proc/go_version.go
pkg/proc/go_version.go
+0
-0
pkg/proc/mach_exc.defs
pkg/proc/mach_exc.defs
+0
-0
pkg/proc/mach_exc.h
pkg/proc/mach_exc.h
+0
-0
pkg/proc/mach_exc_user_darwin.c
pkg/proc/mach_exc_user_darwin.c
+0
-0
pkg/proc/mem.go
pkg/proc/mem.go
+0
-0
pkg/proc/moduledata.go
pkg/proc/moduledata.go
+0
-0
pkg/proc/proc.go
pkg/proc/proc.go
+3
-3
pkg/proc/proc_darwin.c
pkg/proc/proc_darwin.c
+0
-0
pkg/proc/proc_darwin.go
pkg/proc/proc_darwin.go
+2
-2
pkg/proc/proc_darwin.h
pkg/proc/proc_darwin.h
+0
-0
pkg/proc/proc_linux.go
pkg/proc/proc_linux.go
+2
-2
pkg/proc/proc_test.go
pkg/proc/proc_test.go
+2
-2
pkg/proc/proc_unix_test.go
pkg/proc/proc_unix_test.go
+1
-1
pkg/proc/proc_windows.go
pkg/proc/proc_windows.go
+2
-2
pkg/proc/ptrace_darwin.go
pkg/proc/ptrace_darwin.go
+0
-0
pkg/proc/ptrace_linux.go
pkg/proc/ptrace_linux.go
+0
-0
pkg/proc/ptrace_windows.go
pkg/proc/ptrace_windows.go
+0
-0
pkg/proc/registers.go
pkg/proc/registers.go
+0
-0
pkg/proc/registers_darwin_amd64.go
pkg/proc/registers_darwin_amd64.go
+0
-0
pkg/proc/registers_linux_amd64.go
pkg/proc/registers_linux_amd64.go
+0
-0
pkg/proc/registers_windows_amd64.go
pkg/proc/registers_windows_amd64.go
+0
-0
pkg/proc/stack.go
pkg/proc/stack.go
+1
-1
pkg/proc/syscall_windows.go
pkg/proc/syscall_windows.go
+0
-0
pkg/proc/syscall_windows_amd64.go
pkg/proc/syscall_windows_amd64.go
+0
-0
pkg/proc/test/support.go
pkg/proc/test/support.go
+0
-0
pkg/proc/threads.go
pkg/proc/threads.go
+0
-0
pkg/proc/threads_darwin.c
pkg/proc/threads_darwin.c
+0
-0
pkg/proc/threads_darwin.go
pkg/proc/threads_darwin.go
+0
-0
pkg/proc/threads_darwin.h
pkg/proc/threads_darwin.h
+0
-0
pkg/proc/threads_linux.go
pkg/proc/threads_linux.go
+0
-0
pkg/proc/threads_windows.go
pkg/proc/threads_windows.go
+0
-0
pkg/proc/types.go
pkg/proc/types.go
+1
-1
pkg/proc/variables.go
pkg/proc/variables.go
+2
-2
pkg/proc/zsyscall_windows.go
pkg/proc/zsyscall_windows.go
+0
-0
pkg/target/target.go
pkg/target/target.go
+1
-1
pkg/terminal/command.go
pkg/terminal/command.go
+0
-0
pkg/terminal/command_test.go
pkg/terminal/command_test.go
+1
-1
pkg/terminal/disasmprint.go
pkg/terminal/disasmprint.go
+0
-0
pkg/terminal/docgen.go
pkg/terminal/docgen.go
+0
-0
pkg/terminal/terminal.go
pkg/terminal/terminal.go
+1
-1
pkg/terminal/terminal_other.go
pkg/terminal/terminal_other.go
+0
-0
pkg/terminal/terminal_test.go
pkg/terminal/terminal_test.go
+1
-1
pkg/terminal/terminal_windows.go
pkg/terminal/terminal_windows.go
+0
-0
pkg/version/version.go
pkg/version/version.go
+0
-0
service/api/conversions.go
service/api/conversions.go
+2
-1
service/api/types.go
service/api/types.go
+1
-1
service/debugger/debugger.go
service/debugger/debugger.go
+1
-1
service/debugger/locations.go
service/debugger/locations.go
+1
-1
service/debugger/locations_test.go
service/debugger/locations_test.go
+6
-6
service/rpc1/server.go
service/rpc1/server.go
+1
-1
service/rpccommon/server.go
service/rpccommon/server.go
+1
-1
service/test/integration1_test.go
service/test/integration1_test.go
+2
-2
service/test/integration2_test.go
service/test/integration2_test.go
+2
-2
service/test/variables_test.go
service/test/variables_test.go
+2
-2
未找到文件。
cmd/dlv/cmds/commands.go
浏览文件 @
53f0d240
...
...
@@ -14,13 +14,13 @@ import (
"syscall"
"unicode"
"github.com/derekparker/delve/config"
"github.com/derekparker/delve/pkg/config"
"github.com/derekparker/delve/pkg/terminal"
"github.com/derekparker/delve/pkg/version"
"github.com/derekparker/delve/service"
"github.com/derekparker/delve/service/api"
"github.com/derekparker/delve/service/rpc2"
"github.com/derekparker/delve/service/rpccommon"
"github.com/derekparker/delve/terminal"
"github.com/derekparker/delve/version"
"github.com/spf13/cobra"
)
...
...
cmd/dlv/dlv_test.go
浏览文件 @
53f0d240
...
...
@@ -8,7 +8,7 @@ import (
"runtime"
"testing"
protest
"github.com/derekparker/delve/proc/test"
protest
"github.com/derekparker/delve/p
kg/p
roc/test"
"github.com/derekparker/delve/service/rpc2"
)
...
...
cmd/dlv/main.go
浏览文件 @
53f0d240
...
...
@@ -2,7 +2,7 @@ package main
import
(
"github.com/derekparker/delve/cmd/dlv/cmds"
"github.com/derekparker/delve/version"
"github.com/derekparker/delve/
pkg/
version"
)
// Build is the git sha of this binaries build.
...
...
config/config.go
→
pkg/
config/config.go
浏览文件 @
53f0d240
文件已移动
dwarf/frame/entries.go
→
pkg/
dwarf/frame/entries.go
浏览文件 @
53f0d240
文件已移动
dwarf/frame/entries_test.go
→
pkg/
dwarf/frame/entries_test.go
浏览文件 @
53f0d240
文件已移动
dwarf/frame/expression_constants.go
→
pkg/
dwarf/frame/expression_constants.go
浏览文件 @
53f0d240
文件已移动
dwarf/frame/parser.go
→
pkg/
dwarf/frame/parser.go
浏览文件 @
53f0d240
...
...
@@ -7,7 +7,7 @@ import (
"bytes"
"encoding/binary"
"github.com/derekparker/delve/dwarf/util"
"github.com/derekparker/delve/
pkg/
dwarf/util"
)
type
parsefunc
func
(
*
parseContext
)
parsefunc
...
...
dwarf/frame/parser_test.go
→
pkg/
dwarf/frame/parser_test.go
浏览文件 @
53f0d240
...
...
@@ -7,7 +7,7 @@ import (
"testing"
"github.com/davecheney/profile"
"github.com/derekparker/delve/dwarf/frame"
"github.com/derekparker/delve/
pkg/
dwarf/frame"
)
func
BenchmarkParse
(
b
*
testing
.
B
)
{
...
...
dwarf/frame/table.go
→
pkg/
dwarf/frame/table.go
浏览文件 @
53f0d240
...
...
@@ -5,7 +5,7 @@ import (
"encoding/binary"
"fmt"
"github.com/derekparker/delve/dwarf/util"
"github.com/derekparker/delve/
pkg/
dwarf/util"
)
type
CurrentFrameAddress
struct
{
...
...
dwarf/frame/testdata/frame
→
pkg/
dwarf/frame/testdata/frame
浏览文件 @
53f0d240
文件已移动
dwarf/line/line_parser.go
→
pkg/
dwarf/line/line_parser.go
浏览文件 @
53f0d240
...
...
@@ -4,7 +4,7 @@ import (
"bytes"
"encoding/binary"
"github.com/derekparker/delve/dwarf/util"
"github.com/derekparker/delve/
pkg/
dwarf/util"
)
type
DebugLinePrologue
struct
{
...
...
dwarf/line/line_parser_test.go
→
pkg/
dwarf/line/line_parser_test.go
浏览文件 @
53f0d240
...
...
@@ -47,7 +47,7 @@ const (
func
TestDebugLinePrologueParser
(
t
*
testing
.
T
)
{
// Test against known good values, from readelf --debug-dump=rawline _fixtures/testnextprog
p
,
err
:=
filepath
.
Abs
(
"../../_fixtures/testnextprog"
)
p
,
err
:=
filepath
.
Abs
(
"../../
../
_fixtures/testnextprog"
)
if
err
!=
nil
{
t
.
Fatal
(
err
)
}
...
...
dwarf/line/state_machine.go
→
pkg/
dwarf/line/state_machine.go
浏览文件 @
53f0d240
...
...
@@ -6,7 +6,7 @@ import (
"errors"
"fmt"
"github.com/derekparker/delve/dwarf/util"
"github.com/derekparker/delve/
pkg/
dwarf/util"
)
type
Location
struct
{
...
...
dwarf/op/op.go
→
pkg/
dwarf/op/op.go
浏览文件 @
53f0d240
...
...
@@ -6,7 +6,7 @@ import (
"errors"
"fmt"
"github.com/derekparker/delve/dwarf/util"
"github.com/derekparker/delve/
pkg/
dwarf/util"
)
const
(
...
...
dwarf/op/op_test.go
→
pkg/
dwarf/op/op_test.go
浏览文件 @
53f0d240
文件已移动
dwarf/reader/reader.go
→
pkg/
dwarf/reader/reader.go
浏览文件 @
53f0d240
...
...
@@ -4,7 +4,7 @@ import (
"errors"
"fmt"
"github.com/derekparker/delve/dwarf/op"
"github.com/derekparker/delve/
pkg/
dwarf/op"
"golang.org/x/debug/dwarf"
)
...
...
dwarf/util/util.go
→
pkg/
dwarf/util/util.go
浏览文件 @
53f0d240
文件已移动
dwarf/util/util_test.go
→
pkg/
dwarf/util/util_test.go
浏览文件 @
53f0d240
文件已移动
proc/arch.go
→
p
kg/p
roc/arch.go
浏览文件 @
53f0d240
文件已移动
proc/breakpoints.go
→
p
kg/p
roc/breakpoints.go
浏览文件 @
53f0d240
文件已移动
proc/disasm.go
→
p
kg/p
roc/disasm.go
浏览文件 @
53f0d240
文件已移动
proc/disasm_amd64.go
→
p
kg/p
roc/disasm_amd64.go
浏览文件 @
53f0d240
文件已移动
proc/doc.go
→
p
kg/p
roc/doc.go
浏览文件 @
53f0d240
文件已移动
proc/eval.go
→
p
kg/p
roc/eval.go
浏览文件 @
53f0d240
...
...
@@ -12,7 +12,7 @@ import (
"go/token"
"reflect"
"github.com/derekparker/delve/dwarf/reader"
"github.com/derekparker/delve/
pkg/
dwarf/reader"
"golang.org/x/debug/dwarf"
)
...
...
proc/exc.h
→
p
kg/p
roc/exc.h
浏览文件 @
53f0d240
文件已移动
proc/exc_user_darwin.c
→
p
kg/p
roc/exc_user_darwin.c
浏览文件 @
53f0d240
文件已移动
proc/exec_darwin.c
→
p
kg/p
roc/exec_darwin.c
浏览文件 @
53f0d240
文件已移动
proc/exec_darwin.h
→
p
kg/p
roc/exec_darwin.h
浏览文件 @
53f0d240
文件已移动
proc/go_version.go
→
p
kg/p
roc/go_version.go
浏览文件 @
53f0d240
文件已移动
proc/mach_exc.defs
→
p
kg/p
roc/mach_exc.defs
浏览文件 @
53f0d240
文件已移动
proc/mach_exc.h
→
p
kg/p
roc/mach_exc.h
浏览文件 @
53f0d240
文件已移动
proc/mach_exc_user_darwin.c
→
p
kg/p
roc/mach_exc_user_darwin.c
浏览文件 @
53f0d240
文件已移动
proc/mem.go
→
p
kg/p
roc/mem.go
浏览文件 @
53f0d240
文件已移动
proc/moduledata.go
→
p
kg/p
roc/moduledata.go
浏览文件 @
53f0d240
文件已移动
proc/proc.go
→
p
kg/p
roc/proc.go
浏览文件 @
53f0d240
...
...
@@ -16,9 +16,9 @@ import (
"sync"
"time"
"github.com/derekparker/delve/dwarf/frame"
"github.com/derekparker/delve/dwarf/line"
"github.com/derekparker/delve/dwarf/reader"
"github.com/derekparker/delve/
pkg/
dwarf/frame"
"github.com/derekparker/delve/
pkg/
dwarf/line"
"github.com/derekparker/delve/
pkg/
dwarf/reader"
"golang.org/x/debug/dwarf"
)
...
...
proc/proc_darwin.c
→
p
kg/p
roc/proc_darwin.c
浏览文件 @
53f0d240
文件已移动
proc/proc_darwin.go
→
p
kg/p
roc/proc_darwin.go
浏览文件 @
53f0d240
...
...
@@ -17,8 +17,8 @@ import (
"golang.org/x/debug/macho"
"github.com/derekparker/delve/dwarf/frame"
"github.com/derekparker/delve/dwarf/line"
"github.com/derekparker/delve/
pkg/
dwarf/frame"
"github.com/derekparker/delve/
pkg/
dwarf/line"
sys
"golang.org/x/sys/unix"
)
...
...
proc/proc_darwin.h
→
p
kg/p
roc/proc_darwin.h
浏览文件 @
53f0d240
文件已移动
proc/proc_linux.go
→
p
kg/p
roc/proc_linux.go
浏览文件 @
53f0d240
...
...
@@ -18,8 +18,8 @@ import (
sys
"golang.org/x/sys/unix"
"github.com/derekparker/delve/dwarf/frame"
"github.com/derekparker/delve/dwarf/line"
"github.com/derekparker/delve/
pkg/
dwarf/frame"
"github.com/derekparker/delve/
pkg/
dwarf/line"
"golang.org/x/debug/elf"
)
...
...
proc/proc_test.go
→
p
kg/p
roc/proc_test.go
浏览文件 @
53f0d240
...
...
@@ -17,7 +17,7 @@ import (
"testing"
"time"
protest
"github.com/derekparker/delve/proc/test"
protest
"github.com/derekparker/delve/p
kg/p
roc/test"
)
var
normalLoadConfig
=
LoadConfig
{
true
,
1
,
64
,
64
,
-
1
}
...
...
@@ -2442,7 +2442,7 @@ func TestStacktraceWithBarriers(t *testing.T) {
assertNoError
(
p
.
Continue
(),
t
,
"Continue()"
)
gs
,
err
:=
p
.
GoroutinesInfo
()
assertNoError
(
err
,
t
,
"GoroutinesInfo()"
)
for
_
,
th
:=
range
p
.
T
hreads
{
for
_
,
th
:=
range
p
.
t
hreads
{
if
th
.
CurrentBreakpoint
==
nil
{
continue
}
...
...
proc/proc_unix_test.go
→
p
kg/p
roc/proc_unix_test.go
浏览文件 @
53f0d240
...
...
@@ -7,7 +7,7 @@ import (
"testing"
"time"
protest
"github.com/derekparker/delve/proc/test"
protest
"github.com/derekparker/delve/p
kg/p
roc/test"
)
func
TestIssue419
(
t
*
testing
.
T
)
{
...
...
proc/proc_windows.go
→
p
kg/p
roc/proc_windows.go
浏览文件 @
53f0d240
...
...
@@ -14,8 +14,8 @@ import (
sys
"golang.org/x/sys/windows"
"github.com/derekparker/delve/dwarf/frame"
"github.com/derekparker/delve/dwarf/line"
"github.com/derekparker/delve/
pkg/
dwarf/frame"
"github.com/derekparker/delve/
pkg/
dwarf/line"
"golang.org/x/debug/dwarf"
)
...
...
proc/ptrace_darwin.go
→
p
kg/p
roc/ptrace_darwin.go
浏览文件 @
53f0d240
文件已移动
proc/ptrace_linux.go
→
p
kg/p
roc/ptrace_linux.go
浏览文件 @
53f0d240
文件已移动
proc/ptrace_windows.go
→
p
kg/p
roc/ptrace_windows.go
浏览文件 @
53f0d240
文件已移动
proc/registers.go
→
p
kg/p
roc/registers.go
浏览文件 @
53f0d240
文件已移动
proc/registers_darwin_amd64.go
→
p
kg/p
roc/registers_darwin_amd64.go
浏览文件 @
53f0d240
文件已移动
proc/registers_linux_amd64.go
→
p
kg/p
roc/registers_linux_amd64.go
浏览文件 @
53f0d240
文件已移动
proc/registers_windows_amd64.go
→
p
kg/p
roc/registers_windows_amd64.go
浏览文件 @
53f0d240
文件已移动
proc/stack.go
→
p
kg/p
roc/stack.go
浏览文件 @
53f0d240
...
...
@@ -5,7 +5,7 @@ import (
"errors"
"fmt"
"github.com/derekparker/delve/dwarf/frame"
"github.com/derekparker/delve/
pkg/
dwarf/frame"
)
// This code is partly adaped from runtime.gentraceback in
...
...
proc/syscall_windows.go
→
p
kg/p
roc/syscall_windows.go
浏览文件 @
53f0d240
文件已移动
proc/syscall_windows_amd64.go
→
p
kg/p
roc/syscall_windows_amd64.go
浏览文件 @
53f0d240
文件已移动
proc/test/support.go
→
p
kg/p
roc/test/support.go
浏览文件 @
53f0d240
文件已移动
proc/threads.go
→
p
kg/p
roc/threads.go
浏览文件 @
53f0d240
文件已移动
proc/threads_darwin.c
→
p
kg/p
roc/threads_darwin.c
浏览文件 @
53f0d240
文件已移动
proc/threads_darwin.go
→
p
kg/p
roc/threads_darwin.go
浏览文件 @
53f0d240
文件已移动
proc/threads_darwin.h
→
p
kg/p
roc/threads_darwin.h
浏览文件 @
53f0d240
文件已移动
proc/threads_linux.go
→
p
kg/p
roc/threads_linux.go
浏览文件 @
53f0d240
文件已移动
proc/threads_windows.go
→
p
kg/p
roc/threads_windows.go
浏览文件 @
53f0d240
文件已移动
proc/types.go
→
p
kg/p
roc/types.go
浏览文件 @
53f0d240
...
...
@@ -14,7 +14,7 @@ import (
"sync"
"unsafe"
"github.com/derekparker/delve/dwarf/reader"
"github.com/derekparker/delve/
pkg/
dwarf/reader"
"golang.org/x/debug/dwarf"
)
...
...
proc/variables.go
→
p
kg/p
roc/variables.go
浏览文件 @
53f0d240
...
...
@@ -13,8 +13,8 @@ import (
"strings"
"unsafe"
"github.com/derekparker/delve/dwarf/op"
"github.com/derekparker/delve/dwarf/reader"
"github.com/derekparker/delve/
pkg/
dwarf/op"
"github.com/derekparker/delve/
pkg/
dwarf/reader"
"golang.org/x/debug/dwarf"
)
...
...
proc/zsyscall_windows.go
→
p
kg/p
roc/zsyscall_windows.go
浏览文件 @
53f0d240
文件已移动
pkg/target/target.go
浏览文件 @
53f0d240
...
...
@@ -5,7 +5,7 @@ import (
"go/ast"
"time"
"github.com/derekparker/delve/proc"
"github.com/derekparker/delve/p
kg/p
roc"
)
// Target represents the target of the debugger. This
...
...
terminal/command.go
→
pkg/
terminal/command.go
浏览文件 @
53f0d240
文件已移动
terminal/command_test.go
→
pkg/
terminal/command_test.go
浏览文件 @
53f0d240
...
...
@@ -10,7 +10,7 @@ import (
"strings"
"testing"
"github.com/derekparker/delve/proc/test"
"github.com/derekparker/delve/p
kg/p
roc/test"
"github.com/derekparker/delve/service"
"github.com/derekparker/delve/service/api"
"github.com/derekparker/delve/service/rpc2"
...
...
terminal/disasmprint.go
→
pkg/
terminal/disasmprint.go
浏览文件 @
53f0d240
文件已移动
terminal/docgen.go
→
pkg/
terminal/docgen.go
浏览文件 @
53f0d240
文件已移动
terminal/terminal.go
→
pkg/
terminal/terminal.go
浏览文件 @
53f0d240
...
...
@@ -12,7 +12,7 @@ import (
"github.com/peterh/liner"
"github.com/derekparker/delve/config"
"github.com/derekparker/delve/
pkg/
config"
"github.com/derekparker/delve/service"
)
...
...
terminal/terminal_other.go
→
pkg/
terminal/terminal_other.go
浏览文件 @
53f0d240
文件已移动
terminal/terminal_test.go
→
pkg/
terminal/terminal_test.go
浏览文件 @
53f0d240
...
...
@@ -4,7 +4,7 @@ import (
"runtime"
"testing"
"github.com/derekparker/delve/config"
"github.com/derekparker/delve/
pkg/
config"
)
type
tRule
struct
{
...
...
terminal/terminal_windows.go
→
pkg/
terminal/terminal_windows.go
浏览文件 @
53f0d240
文件已移动
version/version.go
→
pkg/
version/version.go
浏览文件 @
53f0d240
文件已移动
service/api/conversions.go
浏览文件 @
53f0d240
...
...
@@ -9,7 +9,8 @@ import (
"reflect"
"strconv"
"github.com/derekparker/delve/proc"
"github.com/derekparker/delve/pkg/proc"
"golang.org/x/debug/dwarf"
)
...
...
service/api/types.go
浏览文件 @
53f0d240
...
...
@@ -8,7 +8,7 @@ import (
"strconv"
"unicode"
"github.com/derekparker/delve/proc"
"github.com/derekparker/delve/p
kg/p
roc"
)
var
NotExecutableErr
=
proc
.
NotExecutableErr
...
...
service/debugger/debugger.go
浏览文件 @
53f0d240
...
...
@@ -14,7 +14,7 @@ import (
"time"
"github.com/derekparker/delve/pkg/target"
"github.com/derekparker/delve/proc"
"github.com/derekparker/delve/p
kg/p
roc"
"github.com/derekparker/delve/service/api"
)
...
...
service/debugger/locations.go
浏览文件 @
53f0d240
...
...
@@ -10,7 +10,7 @@ import (
"strconv"
"strings"
"github.com/derekparker/delve/proc"
"github.com/derekparker/delve/p
kg/p
roc"
"github.com/derekparker/delve/service/api"
)
...
...
service/debugger/locations_test.go
浏览文件 @
53f0d240
...
...
@@ -57,12 +57,12 @@ func TestFunctionLocationParsing(t *testing.T) {
assertNormalLocationSpec
(
t
,
"Continue:10"
,
NormalLocationSpec
{
"Continue"
,
&
FuncLocationSpec
{
BaseName
:
"Continue"
},
10
})
// Function locations, package paths, no line offsets
assertNormalLocationSpec
(
t
,
"github.com/derekparker/delve/p
roc.(*Process).Continue"
,
NormalLocationSpec
{
"github.com/derekparker/delve/proc.(*Process).Continue"
,
&
FuncLocationSpec
{
PackageName
:
"github.com/derekparker/delve
/proc"
,
ReceiverName
:
"Process"
,
BaseName
:
"Continue"
},
-
1
})
assertNormalLocationSpec
(
t
,
"github.com/derekparker/delve/p
roc.Process.Continue"
,
NormalLocationSpec
{
"github.com/derekparker/delve/proc.Process.Continue"
,
&
FuncLocationSpec
{
PackageName
:
"github.com/derekparker/delve
/proc"
,
ReceiverName
:
"Process"
,
BaseName
:
"Continue"
},
-
1
})
assertNormalLocationSpec
(
t
,
"github.com/derekparker/delve/p
roc.Continue"
,
NormalLocationSpec
{
"github.com/derekparker/delve/proc.Continue"
,
&
FuncLocationSpec
{
PackageName
:
"github.com/derekparker/delve
/proc"
,
BaseName
:
"Continue"
},
-
1
})
assertNormalLocationSpec
(
t
,
"github.com/derekparker/delve/p
kg/proc.(*Process).Continue"
,
NormalLocationSpec
{
"github.com/derekparker/delve/pkg/proc.(*Process).Continue"
,
&
FuncLocationSpec
{
PackageName
:
"github.com/derekparker/delve/pkg
/proc"
,
ReceiverName
:
"Process"
,
BaseName
:
"Continue"
},
-
1
})
assertNormalLocationSpec
(
t
,
"github.com/derekparker/delve/p
kg/proc.Process.Continue"
,
NormalLocationSpec
{
"github.com/derekparker/delve/pkg/proc.Process.Continue"
,
&
FuncLocationSpec
{
PackageName
:
"github.com/derekparker/delve/pkg
/proc"
,
ReceiverName
:
"Process"
,
BaseName
:
"Continue"
},
-
1
})
assertNormalLocationSpec
(
t
,
"github.com/derekparker/delve/p
kg/proc.Continue"
,
NormalLocationSpec
{
"github.com/derekparker/delve/pkg/proc.Continue"
,
&
FuncLocationSpec
{
PackageName
:
"github.com/derekparker/delve/pkg
/proc"
,
BaseName
:
"Continue"
},
-
1
})
// Function locations, package paths, line offsets
assertNormalLocationSpec
(
t
,
"github.com/derekparker/delve/p
roc.(*Process).Continue:10"
,
NormalLocationSpec
{
"github.com/derekparker/delve/proc.(*Process).Continue"
,
&
FuncLocationSpec
{
PackageName
:
"github.com/derekparker/delve
/proc"
,
ReceiverName
:
"Process"
,
BaseName
:
"Continue"
},
10
})
assertNormalLocationSpec
(
t
,
"github.com/derekparker/delve/p
roc.Process.Continue:10"
,
NormalLocationSpec
{
"github.com/derekparker/delve/proc.Process.Continue"
,
&
FuncLocationSpec
{
PackageName
:
"github.com/derekparker/delve
/proc"
,
ReceiverName
:
"Process"
,
BaseName
:
"Continue"
},
10
})
assertNormalLocationSpec
(
t
,
"github.com/derekparker/delve/p
roc.Continue:10"
,
NormalLocationSpec
{
"github.com/derekparker/delve/proc.Continue"
,
&
FuncLocationSpec
{
PackageName
:
"github.com/derekparker/delve
/proc"
,
BaseName
:
"Continue"
},
10
})
assertNormalLocationSpec
(
t
,
"github.com/derekparker/delve/p
kg/proc.(*Process).Continue:10"
,
NormalLocationSpec
{
"github.com/derekparker/delve/pkg/proc.(*Process).Continue"
,
&
FuncLocationSpec
{
PackageName
:
"github.com/derekparker/delve/pkg
/proc"
,
ReceiverName
:
"Process"
,
BaseName
:
"Continue"
},
10
})
assertNormalLocationSpec
(
t
,
"github.com/derekparker/delve/p
kg/proc.Process.Continue:10"
,
NormalLocationSpec
{
"github.com/derekparker/delve/pkg/proc.Process.Continue"
,
&
FuncLocationSpec
{
PackageName
:
"github.com/derekparker/delve/pkg
/proc"
,
ReceiverName
:
"Process"
,
BaseName
:
"Continue"
},
10
})
assertNormalLocationSpec
(
t
,
"github.com/derekparker/delve/p
kg/proc.Continue:10"
,
NormalLocationSpec
{
"github.com/derekparker/delve/pkg/proc.Continue"
,
&
FuncLocationSpec
{
PackageName
:
"github.com/derekparker/delve/pkg
/proc"
,
BaseName
:
"Continue"
},
10
})
}
service/rpc1/server.go
浏览文件 @
53f0d240
...
...
@@ -4,7 +4,7 @@ import (
"errors"
"fmt"
"github.com/derekparker/delve/proc"
"github.com/derekparker/delve/p
kg/p
roc"
"github.com/derekparker/delve/service"
"github.com/derekparker/delve/service/api"
"github.com/derekparker/delve/service/debugger"
...
...
service/rpccommon/server.go
浏览文件 @
53f0d240
...
...
@@ -16,12 +16,12 @@ import (
"unicode"
"unicode/utf8"
"github.com/derekparker/delve/pkg/version"
"github.com/derekparker/delve/service"
"github.com/derekparker/delve/service/api"
"github.com/derekparker/delve/service/debugger"
"github.com/derekparker/delve/service/rpc1"
"github.com/derekparker/delve/service/rpc2"
"github.com/derekparker/delve/version"
)
// ServerImpl implements a JSON-RPC server that can switch between two
...
...
service/test/integration1_test.go
浏览文件 @
53f0d240
...
...
@@ -11,9 +11,9 @@ import (
"testing"
"time"
protest
"github.com/derekparker/delve/proc/test"
protest
"github.com/derekparker/delve/p
kg/p
roc/test"
"github.com/derekparker/delve/proc"
"github.com/derekparker/delve/p
kg/p
roc"
"github.com/derekparker/delve/service"
"github.com/derekparker/delve/service/api"
"github.com/derekparker/delve/service/rpc1"
...
...
service/test/integration2_test.go
浏览文件 @
53f0d240
...
...
@@ -12,9 +12,9 @@ import (
"testing"
"time"
protest
"github.com/derekparker/delve/proc/test"
protest
"github.com/derekparker/delve/p
kg/p
roc/test"
"github.com/derekparker/delve/proc"
"github.com/derekparker/delve/p
kg/p
roc"
"github.com/derekparker/delve/service"
"github.com/derekparker/delve/service/api"
"github.com/derekparker/delve/service/rpc2"
...
...
service/test/variables_test.go
浏览文件 @
53f0d240
...
...
@@ -7,10 +7,10 @@ import (
"strings"
"testing"
"github.com/derekparker/delve/proc"
"github.com/derekparker/delve/p
kg/p
roc"
"github.com/derekparker/delve/service/api"
protest
"github.com/derekparker/delve/proc/test"
protest
"github.com/derekparker/delve/p
kg/p
roc/test"
)
var
pnormalLoadConfig
=
proc
.
LoadConfig
{
true
,
1
,
64
,
64
,
-
1
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录