Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
11f9c039
Commit
11f9c039
authored
Jul 13, 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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
12 deletions
+11
-12
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 {
debugEvents
chan
*
debugEvent
debugReqs
chan
*
debugReq
stopReq
chan
os
.
Error
transitionHandlers
*
vector
.
Vector
transitionHandlers
vector
.
Vector
err
os
.
Error
}
...
...
@@ -472,8 +472,8 @@ func (t *thread) setState(newState threadState) {
return
}
t
.
proc
.
transitionHandlers
=
n
ew
(
vector
.
Vector
)
for
_
,
h
:=
range
handlers
.
Data
()
{
t
.
proc
.
transitionHandlers
=
n
il
for
_
,
h
:=
range
handlers
{
h
:=
h
.
(
*
transitionHandler
)
h
.
handle
(
t
,
oldState
,
newState
)
}
...
...
@@ -738,7 +738,7 @@ func (p *process) monitor() {
// Abort waiting handlers
// TODO(austin) How do I stop the wait threads?
for
_
,
h
:=
range
p
.
transitionHandlers
.
Data
()
{
for
_
,
h
:=
range
p
.
transitionHandlers
{
h
:=
h
.
(
*
transitionHandler
)
h
.
onErr
(
err
)
}
...
...
@@ -1249,14 +1249,13 @@ func (p *process) attachAllThreads() os.Error {
// newProcess creates a new process object and starts its monitor thread.
func
newProcess
(
pid
int
)
*
process
{
p
:=
&
process
{
pid
:
pid
,
threads
:
make
(
map
[
int
]
*
thread
),
breakpoints
:
make
(
map
[
uintptr
]
*
breakpoint
),
ready
:
make
(
chan
bool
,
1
),
debugEvents
:
make
(
chan
*
debugEvent
),
debugReqs
:
make
(
chan
*
debugReq
),
stopReq
:
make
(
chan
os
.
Error
),
transitionHandlers
:
new
(
vector
.
Vector
),
pid
:
pid
,
threads
:
make
(
map
[
int
]
*
thread
),
breakpoints
:
make
(
map
[
uintptr
]
*
breakpoint
),
ready
:
make
(
chan
bool
,
1
),
debugEvents
:
make
(
chan
*
debugEvent
),
debugReqs
:
make
(
chan
*
debugReq
),
stopReq
:
make
(
chan
os
.
Error
),
}
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