Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
11f9c039
Commit
11f9c039
authored
Jul 12, 2010
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix build
R=gri CC=golang-dev
https://golang.org/cl/1813042
parent
b6850fe7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
12 deletions
+11
-12
src/pkg/debug/proc/proc_linux.go
src/pkg/debug/proc/proc_linux.go
+11
-12
No files found.
src/pkg/debug/proc/proc_linux.go
View file @
11f9c039
...
@@ -153,7 +153,7 @@ type process struct {
...
@@ -153,7 +153,7 @@ type process struct {
debugEvents
chan
*
debugEvent
debugEvents
chan
*
debugEvent
debugReqs
chan
*
debugReq
debugReqs
chan
*
debugReq
stopReq
chan
os
.
Error
stopReq
chan
os
.
Error
transitionHandlers
*
vector
.
Vector
transitionHandlers
vector
.
Vector
err
os
.
Error
err
os
.
Error
}
}
...
@@ -472,8 +472,8 @@ func (t *thread) setState(newState threadState) {
...
@@ -472,8 +472,8 @@ func (t *thread) setState(newState threadState) {
return
return
}
}
t
.
proc
.
transitionHandlers
=
n
ew
(
vector
.
Vector
)
t
.
proc
.
transitionHandlers
=
n
il
for
_
,
h
:=
range
handlers
.
Data
()
{
for
_
,
h
:=
range
handlers
{
h
:=
h
.
(
*
transitionHandler
)
h
:=
h
.
(
*
transitionHandler
)
h
.
handle
(
t
,
oldState
,
newState
)
h
.
handle
(
t
,
oldState
,
newState
)
}
}
...
@@ -738,7 +738,7 @@ func (p *process) monitor() {
...
@@ -738,7 +738,7 @@ func (p *process) monitor() {
// Abort waiting handlers
// Abort waiting handlers
// TODO(austin) How do I stop the wait threads?
// TODO(austin) How do I stop the wait threads?
for
_
,
h
:=
range
p
.
transitionHandlers
.
Data
()
{
for
_
,
h
:=
range
p
.
transitionHandlers
{
h
:=
h
.
(
*
transitionHandler
)
h
:=
h
.
(
*
transitionHandler
)
h
.
onErr
(
err
)
h
.
onErr
(
err
)
}
}
...
@@ -1249,14 +1249,13 @@ func (p *process) attachAllThreads() os.Error {
...
@@ -1249,14 +1249,13 @@ func (p *process) attachAllThreads() os.Error {
// newProcess creates a new process object and starts its monitor thread.
// newProcess creates a new process object and starts its monitor thread.
func
newProcess
(
pid
int
)
*
process
{
func
newProcess
(
pid
int
)
*
process
{
p
:=
&
process
{
p
:=
&
process
{
pid
:
pid
,
pid
:
pid
,
threads
:
make
(
map
[
int
]
*
thread
),
threads
:
make
(
map
[
int
]
*
thread
),
breakpoints
:
make
(
map
[
uintptr
]
*
breakpoint
),
breakpoints
:
make
(
map
[
uintptr
]
*
breakpoint
),
ready
:
make
(
chan
bool
,
1
),
ready
:
make
(
chan
bool
,
1
),
debugEvents
:
make
(
chan
*
debugEvent
),
debugEvents
:
make
(
chan
*
debugEvent
),
debugReqs
:
make
(
chan
*
debugReq
),
debugReqs
:
make
(
chan
*
debugReq
),
stopReq
:
make
(
chan
os
.
Error
),
stopReq
:
make
(
chan
os
.
Error
),
transitionHandlers
:
new
(
vector
.
Vector
),
}
}
go
p
.
monitor
()
go
p
.
monitor
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment