Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(60)

Issue 4517147: code review 4517147: syscall: adding ptrace on darwin (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 9 months ago by jmhodges
Modified:
13 years, 9 months ago
Reviewers:
CC:
rsc, dave_cheney.net, r, golang-dev
Visibility:
Public.

Description

syscall: adding ptrace on darwin The ptrace syscall remains gutted on darwin, but usable. This also makes the syscall addition process reproducible on darwin instead of relying on a file path in rsc's home directory. I've also removed an override of $PATH in env.bash that made tooling harder.

Patch Set 1 #

Patch Set 2 : diff -r 918d151dbaec https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 918d151dbaec https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r e8891ae9fb04 https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r e8891ae9fb04 https://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 6 : diff -r e8891ae9fb04 https://go.googlecode.com/hg/ #

Total comments: 1

Patch Set 7 : diff -r 138cdbcafce8 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+765 lines, -977 lines) Patch
M src/pkg/syscall/mkall.sh View 1 1 chunk +2 lines, -3 lines 0 comments Download
M src/pkg/syscall/mkerrors.sh View 1 2 chunks +2 lines, -1 line 0 comments Download
M src/pkg/syscall/mksysnum_darwin.pl View 1 2 3 4 5 6 2 chunks +5 lines, -13 lines 0 comments Download
M src/pkg/syscall/syscall_darwin.go View 1 1 chunk +4 lines, -0 lines 0 comments Download
M src/pkg/syscall/zerrors_darwin_386.go View 1 1 chunk +18 lines, -0 lines 0 comments Download
M src/pkg/syscall/zerrors_darwin_amd64.go View 1 2 chunks +20 lines, -2 lines 0 comments Download
M src/pkg/syscall/zsyscall_darwin_386.go View 1 1 chunk +8 lines, -0 lines 0 comments Download
M src/pkg/syscall/zsyscall_darwin_amd64.go View 1 1 chunk +8 lines, -0 lines 0 comments Download
M src/pkg/syscall/zsysnum_darwin_386.go View 1 1 chunk +349 lines, -479 lines 0 comments Download
M src/pkg/syscall/zsysnum_darwin_amd64.go View 1 1 chunk +349 lines, -479 lines 0 comments Download

Messages

Total messages: 12
jmhodges
Hello rsc@golang.org (cc: dayveday@gmail.com, golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 9 months ago (2011-06-09 05:12:24 UTC) #1
jmhodges
Ping?
13 years, 9 months ago (2011-06-13 18:30:46 UTC) #2
jmhodges
Hello rsc@golang.org, dave@cheney.net (cc: dave@cheney.net, golang-dev@googlegroups.com), Please take another look.
13 years, 9 months ago (2011-06-14 03:50:11 UTC) #3
r
http://codereview.appspot.com/4517147/diff/12001/src/pkg/syscall/mksysnum_darwin.pl File src/pkg/syscall/mksysnum_darwin.pl (right): http://codereview.appspot.com/4517147/diff/12001/src/pkg/syscall/mksysnum_darwin.pl#newcode23 src/pkg/syscall/mksysnum_darwin.pl:23: my $num = $2; strange indentation or just codereview ...
13 years, 9 months ago (2011-06-14 04:07:35 UTC) #4
jmhodges
http://codereview.appspot.com/4517147/diff/12001/src/pkg/syscall/mksysnum_darwin.pl File src/pkg/syscall/mksysnum_darwin.pl (right): http://codereview.appspot.com/4517147/diff/12001/src/pkg/syscall/mksysnum_darwin.pl#newcode23 src/pkg/syscall/mksysnum_darwin.pl:23: my $num = $2; On 2011/06/14 04:07:35, r wrote: ...
13 years, 9 months ago (2011-06-14 04:12:37 UTC) #5
jmhodges
Hello rsc@golang.org, dave@cheney.net, r@golang.org (cc: dave@cheney.net, golang-dev@googlegroups.com), Please take another look.
13 years, 9 months ago (2011-06-14 04:12:52 UTC) #6
r
leaving for rsc. it's his name you're removing.
13 years, 9 months ago (2011-06-14 04:26:50 UTC) #7
dave_cheney.net
Using this sample code provided by jmhodges this works as advertised on darwin/amd64.
13 years, 9 months ago (2011-06-14 04:30:04 UTC) #8
rsc
LGTM Thanks. This is much cleaner. Please update the comment in mksysnum_darwin and I will ...
13 years, 9 months ago (2011-06-14 15:18:40 UTC) #9
jmhodges
Hello rsc@golang.org, dave@cheney.net, r@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 9 months ago (2011-06-14 16:53:14 UTC) #10
rsc
LGTM
13 years, 9 months ago (2011-06-14 16:54:46 UTC) #11
rsc
13 years, 9 months ago (2011-06-14 16:56:55 UTC) #12
*** Submitted as http://code.google.com/p/go/source/detail?r=2c8050925cc4 ***

syscall: add ptrace on darwin

The ptrace syscall remains gutted on darwin, but usable.  This
also makes the syscall addition process reproducible on darwin
instead of relying on a file path in rsc's home directory.
I've also removed an override of $PATH in env.bash that made
tooling harder.

R=rsc, dave, r
CC=golang-dev
http://codereview.appspot.com/4517147

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b