Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
derekparker
delve
Commits
c51a113e
Commit
c51a113e
authored
9 years ago
by
Derek Parker
Browse files
Options
Download
Patches
Plain Diff
wip
parent
2f6b3e9c
closeexec
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
proc/proc_darwin.go
+4
-4
proc/proc_darwin.go
with
4 additions
and
4 deletions
+4
-4
proc/proc_darwin.go
+
4
−
4
View file @
c51a113e
...
...
@@ -278,6 +278,10 @@ func (dbp *Process) findExecutable(path string) (*macho.File, error) {
}
func
(
dbp
*
Process
)
trapWait
(
pid
int
)
(
*
Thread
,
error
)
{
ret
:=
int
(
C
.
send_mach_reply
())
if
ret
<
0
{
return
errors
.
New
(
"could not send mach reply"
)
}
for
{
port
:=
C
.
mach_port_wait
(
dbp
.
os
.
portSet
,
C
.
int
(
0
))
...
...
@@ -390,10 +394,6 @@ func (dbp *Process) exitGuard(err error) error {
}
func
(
dbp
*
Process
)
resume
()
error
{
ret
:=
int
(
C
.
send_mach_reply
())
if
ret
<
0
{
return
errors
.
New
(
"could not send mach reply"
)
}
// all threads stopped over a breakpoint are made to step over it
for
_
,
thread
:=
range
dbp
.
Threads
{
if
thread
.
CurrentBreakpoint
!=
nil
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets