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
aceba042
Commit
aceba042
authored
Mar 21, 2010
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libmach: more info when memory reads fail on Darwin
R=r CC=golang-dev
https://golang.org/cl/604043
parent
80212961
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
darwin.c
src/libmach/darwin.c
+4
-2
No files found.
src/libmach/darwin.c
View file @
aceba042
...
...
@@ -156,7 +156,7 @@ me(kern_return_t r)
for
(
i
=
0
;
i
<
nelem
(
macherr
);
i
++
){
if
(
r
==
macherr
[
i
].
code
){
werrstr
(
"%s"
,
macherr
[
i
].
name
);
werrstr
(
"
mach:
%s"
,
macherr
[
i
].
name
);
return
-
1
;
}
}
...
...
@@ -408,8 +408,10 @@ machsegrw(Map *map, Seg *seg, uvlong addr, void *v, uint n, int isr)
if
(
isr
){
vm_size_t
nn
;
nn
=
n
;
if
(
me
(
vm_read_overwrite
(
task
,
addr
,
n
,
(
uintptr
)
v
,
&
nn
))
<
0
)
if
(
me
(
vm_read_overwrite
(
task
,
addr
,
n
,
(
uintptr
)
v
,
&
nn
))
<
0
)
{
fprint
(
2
,
"vm_read_overwrite %#llux %d to %p: %r
\n
"
,
addr
,
n
,
v
);
return
-
1
;
}
return
nn
;
}
else
{
r
=
vm_write
(
task
,
addr
,
(
uintptr
)
v
,
n
);
...
...
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