Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
pubx
delve
提交
da910cc3
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,发现更多精彩内容 >>
提交
da910cc3
编写于
7月 03, 2016
作者:
A
aarzilli
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
proc: disabled TestUnsupportedArch on go1.7
See:
https://github.com/golang/go/issues/16180
上级
80336e57
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
11 addition
and
11 deletion
+11
-11
proc/proc_test.go
proc/proc_test.go
+4
-4
proc/proc_windows.go
proc/proc_windows.go
+3
-3
proc/stack.go
proc/stack.go
+3
-3
proc/threads.go
proc/threads.go
+1
-1
未找到文件。
proc/proc_test.go
浏览文件 @
da910cc3
...
...
@@ -1847,15 +1847,15 @@ func TestIssue509(t *testing.T) {
func
TestUnsupportedArch
(
t
*
testing
.
T
)
{
ver
,
_
:=
ParseVersionString
(
runtime
.
Version
())
if
ver
.
Major
<
0
||
!
ver
.
AfterOrEqual
(
GoVersion
{
1
,
6
,
-
1
,
0
,
0
})
{
if
ver
.
Major
<
0
||
!
ver
.
AfterOrEqual
(
GoVersion
{
1
,
6
,
-
1
,
0
,
0
})
||
ver
.
AfterOrEqual
(
GoVersion
{
1
,
7
,
-
1
,
0
,
0
})
{
// cross compile (with -N?) works only on select versions of go
return
}
fixturesDir
:=
protest
.
FindFixturesDir
()
infile
:=
filepath
.
Join
(
fixturesDir
,
"math.go"
)
outfile
:=
filepath
.
Join
(
fixturesDir
,
"_math_debug_386"
)
cmd
:=
exec
.
Command
(
"go"
,
"build"
,
"-gcflags=-N -l"
,
"-o"
,
outfile
,
infile
)
for
_
,
v
:=
range
os
.
Environ
()
{
if
!
strings
.
HasPrefix
(
v
,
"GOARCH="
)
{
...
...
@@ -1868,7 +1868,7 @@ func TestUnsupportedArch(t *testing.T) {
t
.
Fatalf
(
"go build failed: %v: %v"
,
err
,
string
(
out
))
}
defer
os
.
Remove
(
outfile
)
p
,
err
:=
Launch
([]
string
{
outfile
})
switch
err
{
case
UnsupportedArchErr
:
...
...
proc/proc_windows.go
浏览文件 @
da910cc3
...
...
@@ -337,9 +337,9 @@ func (dbp *Process) findExecutable(path string) (*pe.File, error) {
func
openExecutablePath
(
path
string
)
(
*
pe
.
File
,
error
)
{
f
,
err
:=
os
.
OpenFile
(
path
,
0
,
os
.
ModePerm
)
if
err
!=
nil
{
return
nil
,
err
}
if
err
!=
nil
{
return
nil
,
err
}
return
pe
.
NewFile
(
f
)
}
...
...
proc/stack.go
浏览文件 @
da910cc3
...
...
@@ -24,11 +24,11 @@ type Stackframe struct {
// Address of the call instruction for the function above on the call stack.
Call
Location
// Start address of the stack frame.
CFA
int64
CFA
int64
// Description of the stack frame.
FDE
*
frame
.
FrameDescriptionEntry
FDE
*
frame
.
FrameDescriptionEntry
// Return address for this stack frame (as read from the stack frame itself).
Ret
uint64
Ret
uint64
}
// Scope returns a new EvalScope using this frame.
...
...
proc/threads.go
浏览文件 @
da910cc3
...
...
@@ -128,7 +128,7 @@ func topframe(g *G, thread *Thread) (Stackframe, error) {
var
frames
[]
Stackframe
var
err
error
if
g
==
nil
{
if
g
==
nil
{
if
thread
.
blocked
()
{
return
Stackframe
{},
ThreadBlockedError
{}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录