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

Issue 91400044: code review 91400044: debug/plan9obj: cleanup api (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years ago by 0intro
Modified:
10 years ago
Reviewers:
gobot, rsc, bradfitz
CC:
bradfitz, golang-codereviews
Visibility:
Public.

Description

debug/plan9obj: cleanup api - Don't export Prog structure. - Remove ProgHeader and ExecTable structures. - Add Magic, Bss and Entry fields in FileHeader. - Replace ?_MAGIC variables with constants. - Ignore final EOF from ReadAt. - Improve documentation. Fixes issue 7989.

Patch Set 1 #

Patch Set 2 : diff -r b9c40afbd66c https://code.google.com/p/go #

Total comments: 10

Patch Set 3 : diff -r b9c40afbd66c https://code.google.com/p/go #

Patch Set 4 : diff -r d419520d0d2e https://code.google.com/p/go #

Total comments: 4

Patch Set 5 : diff -r d419520d0d2e https://code.google.com/p/go #

Patch Set 6 : diff -r d419520d0d2e https://code.google.com/p/go #

Total comments: 14

Patch Set 7 : diff -r 4a839bf01b58 https://code.google.com/p/go #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -126 lines) Patch
M src/pkg/debug/plan9obj/file.go View 1 2 3 4 5 6 13 chunks +43 lines, -64 lines 2 comments Download
M src/pkg/debug/plan9obj/file_test.go View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/debug/plan9obj/plan9obj.go View 1 2 3 4 5 6 2 chunks +5 lines, -60 lines 0 comments Download

Messages

Total messages: 19
0intro
Hello rsc (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go
10 years ago (2014-05-13 21:13:00 UTC) #1
bradfitz
drive-by https://codereview.appspot.com/91400044/diff/30001/src/pkg/debug/plan9obj/file.go File src/pkg/debug/plan9obj/file.go (right): https://codereview.appspot.com/91400044/diff/30001/src/pkg/debug/plan9obj/file.go#newcode19 src/pkg/debug/plan9obj/file.go:19: Ptrsz int Maybe a better name before this ...
10 years ago (2014-05-13 22:25:05 UTC) #2
rsc
None of the other debug packages have separate ProgHeader and FileHeader. I don't understand the ...
10 years ago (2014-05-13 22:30:06 UTC) #3
0intro
https://codereview.appspot.com/91400044/diff/30001/src/pkg/debug/plan9obj/file.go File src/pkg/debug/plan9obj/file.go (right): https://codereview.appspot.com/91400044/diff/30001/src/pkg/debug/plan9obj/file.go#newcode19 src/pkg/debug/plan9obj/file.go:19: Ptrsz int > Is this from an on-disk format? ...
10 years ago (2014-05-14 06:14:55 UTC) #4
0intro
Hello rsc@golang.org, bradfitz@golang.org (cc: golang-codereviews@googlegroups.com), Please take another look.
10 years ago (2014-05-14 06:15:17 UTC) #5
0intro
Ping.
10 years ago (2014-05-19 19:55:38 UTC) #6
bradfitz
https://codereview.appspot.com/91400044/diff/150001/src/pkg/debug/plan9obj/file.go File src/pkg/debug/plan9obj/file.go (right): https://codereview.appspot.com/91400044/diff/150001/src/pkg/debug/plan9obj/file.go#newcode32 src/pkg/debug/plan9obj/file.go:32: // This structure doesn't exist on-disk, but ease navigation ...
10 years ago (2014-05-19 21:15:59 UTC) #7
0intro
https://codereview.appspot.com/91400044/diff/150001/src/pkg/debug/plan9obj/file.go File src/pkg/debug/plan9obj/file.go (right): https://codereview.appspot.com/91400044/diff/150001/src/pkg/debug/plan9obj/file.go#newcode32 src/pkg/debug/plan9obj/file.go:32: // This structure doesn't exist on-disk, but ease navigation ...
10 years ago (2014-05-19 21:36:28 UTC) #8
bradfitz
On Mon, May 19, 2014 at 2:36 PM, <0intro@gmail.com> wrote: > > https://codereview.appspot.com/91400044/diff/150001/src/ > pkg/debug/plan9obj/file.go ...
10 years ago (2014-05-19 22:03:10 UTC) #9
0intro
> Why is this exported if there are no exported fields on it, and no ...
10 years ago (2014-05-19 22:09:15 UTC) #10
rsc
https://codereview.appspot.com/91400044/diff/190001/src/pkg/debug/plan9obj/file.go File src/pkg/debug/plan9obj/file.go (right): https://codereview.appspot.com/91400044/diff/190001/src/pkg/debug/plan9obj/file.go#newcode18 src/pkg/debug/plan9obj/file.go:18: Magic string s/string/uint32/ https://codereview.appspot.com/91400044/diff/190001/src/pkg/debug/plan9obj/file.go#newcode123 src/pkg/debug/plan9obj/file.go:123: for _, e := ...
10 years ago (2014-05-20 02:26:04 UTC) #11
0intro
https://codereview.appspot.com/91400044/diff/190001/src/pkg/debug/plan9obj/file.go File src/pkg/debug/plan9obj/file.go (right): https://codereview.appspot.com/91400044/diff/190001/src/pkg/debug/plan9obj/file.go#newcode18 src/pkg/debug/plan9obj/file.go:18: Magic string On 2014/05/20 02:26:03, rsc wrote: > s/string/uint32/ ...
10 years ago (2014-05-20 06:21:29 UTC) #12
rsc
LGTM for api https://codereview.appspot.com/91400044/diff/280001/src/pkg/debug/plan9obj/file.go File src/pkg/debug/plan9obj/file.go (right): https://codereview.appspot.com/91400044/diff/280001/src/pkg/debug/plan9obj/file.go#newcode164 src/pkg/debug/plan9obj/file.go:164: hdrSize += 8 what are these ...
10 years ago (2014-05-20 17:55:14 UTC) #13
bradfitz
Submitting to kick the NaCl builder and see if it works, per Russ's okay. On ...
10 years ago (2014-05-20 17:56:44 UTC) #14
bradfitz
*** Submitted as https://code.google.com/p/go/source/detail?r=d335e30dc8cb *** debug/plan9obj: cleanup api - Don't export Prog structure. - Remove ...
10 years ago (2014-05-20 17:56:53 UTC) #15
0intro
> https://codereview.appspot.com/91400044/diff/280001/src/pkg/debug/plan9obj/file.go#newcode164 > src/pkg/debug/plan9obj/file.go:164: hdrSize += 8 > what are these extra 8 bytes and ...
10 years ago (2014-05-20 18:06:56 UTC) #16
gobot
This CL appears to have broken the linux-386 builder. See http://build.golang.org/log/6079d1020f95dd659d28c2604fe9c36f72d84cd8
10 years ago (2014-05-20 18:17:27 UTC) #17
rsc
https://codereview.appspot.com/91400044/diff/280001/src/pkg/debug/plan9obj/file.go File src/pkg/debug/plan9obj/file.go (right): https://codereview.appspot.com/91400044/diff/280001/src/pkg/debug/plan9obj/file.go#newcode164 src/pkg/debug/plan9obj/file.go:164: hdrSize += 8 On 2014/05/20 17:55:14, rsc wrote: > ...
10 years ago (2014-05-20 18:39:10 UTC) #18
0intro
10 years ago (2014-05-20 19:07:02 UTC) #19
Thank you both for the review.
Sign in to reply to this message.

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