]>
Cypherpunks repositories - gostls13.git/log
Russ Cox [Wed, 30 Sep 2009 18:06:35 +0000 (11:06 -0700)]
delete
R=r
DELTA=791 (0 added, 791 deleted, 0 changed)
OCL=35154
CL=35154
Russ Cox [Wed, 30 Sep 2009 17:25:22 +0000 (10:25 -0700)]
c compiler bug tickled by
void f(struct { int x[1]; } p) { }
the "int" was getting attached to f.
R=ken
OCL=35145
CL=35151
Rob Pike [Wed, 30 Sep 2009 16:58:19 +0000 (09:58 -0700)]
another brace of questions: types, maps, bookkeeping
DELTA=136 (120 added, 13 deleted, 3 changed)
OCL=35133
CL=35147
Russ Cox [Wed, 30 Sep 2009 15:59:56 +0000 (08:59 -0700)]
clean up error output;
do not print entire buffer on error,
since it can be very large.
instead print identifying string.
R=krasin
DELTA=14 (1 added, 3 deleted, 10 changed)
OCL=35141
CL=35143
Russ Cox [Wed, 30 Sep 2009 15:56:01 +0000 (08:56 -0700)]
fix 386 build - register allocation and shift bug
R=ken
OCL=35140
CL=35142
Russ Cox [Wed, 30 Sep 2009 04:23:34 +0000 (21:23 -0700)]
missing error checking related to ([...]int){...}
R=ken
OCL=35132
CL=35132
Russ Cox [Wed, 30 Sep 2009 04:22:25 +0000 (21:22 -0700)]
nacl system call updates
R=r
DELTA=236 (211 added, 18 deleted, 7 changed)
OCL=35084
CL=35131
Russ Cox [Wed, 30 Sep 2009 04:21:14 +0000 (21:21 -0700)]
undo 35108 (disallow parens around type in struct literal).
allow parens around [...]int in struct literal.
R=ken
OCL=35112
CL=35130
Nigel Tao [Wed, 30 Sep 2009 02:47:05 +0000 (19:47 -0700)]
ZLIB deflater.
R=rsc
APPROVED=rsc
DELTA=222 (219 added, 0 deleted, 3 changed)
OCL=35031
CL=35129
David Symonds [Wed, 30 Sep 2009 01:43:20 +0000 (18:43 -0700)]
Add a Vim syntax highlighting file for Go.
APPROVED=rsc
DELTA=190 (190 added, 0 deleted, 0 changed)
OCL=35073
CL=35128
Kai Backman [Tue, 29 Sep 2009 23:07:59 +0000 (16:07 -0700)]
fix munging of pointer.
go/test: passes 69% (235/339)
R=rsc
APPROVED=rsc
DELTA=5 (4 added, 1 deleted, 0 changed)
OCL=35107
CL=35109
Russ Cox [Tue, 29 Sep 2009 23:05:44 +0000 (16:05 -0700)]
disallow parens around type in struct literal syntax,
per discussion with gri.
R=ken
OCL=35108
CL=35108
Russ Cox [Tue, 29 Sep 2009 23:00:28 +0000 (16:00 -0700)]
Native Client SRPC (simple RPC), both server and client.
R=r
DELTA=958 (958 added, 0 deleted, 0 changed)
OCL=35096
CL=35106
Russ Cox [Tue, 29 Sep 2009 21:04:08 +0000 (14:04 -0700)]
toy draw implementation
R=r
DELTA=471 (471 added, 0 deleted, 0 changed)
OCL=35090
CL=35099
Ivan Krasin [Tue, 29 Sep 2009 20:16:21 +0000 (13:16 -0700)]
Deflate encoder
APPROVED=rsc
OCL=34514
CL=35093
Adam Langley [Tue, 29 Sep 2009 19:15:24 +0000 (12:15 -0700)]
Add crypto/rc4.
RC4 is a common stream cipher. This adds a pure-go C implementation.
R=r
APPROVED=r
DELTA=139 (138 added, 0 deleted, 1 changed)
OCL=35056
CL=35092
Rob Pike [Tue, 29 Sep 2009 18:57:28 +0000 (11:57 -0700)]
make the sidebars consistent
add Effective Go to the set of links
DELTA=166 (62 added, 57 deleted, 47 changed)
OCL=35085
CL=35089
Rob Pike [Tue, 29 Sep 2009 18:56:57 +0000 (11:56 -0700)]
more language FAQ
DELTA=79 (61 added, 3 deleted, 15 changed)
OCL=35083
CL=35088
Kai Backman [Tue, 29 Sep 2009 14:27:49 +0000 (07:27 -0700)]
fixed alignment issue resulting from confusion around the
meaning of out args.
go/test: passes 68% (231/339)
R=rsc
APPROVED=rsc
DELTA=13 (7 added, 0 deleted, 6 changed)
OCL=35072
CL=35080
Robert Griesemer [Tue, 29 Sep 2009 02:21:15 +0000 (19:21 -0700)]
- assignments to structs are only legal if all struct fields are visible
- removed section on Multiple-file packages as this seems now now covered
sufficiently elsewhere
DELTA=45 (11 added, 25 deleted, 9 changed)
OCL=35065
CL=35071
Rob Pike [Mon, 28 Sep 2009 23:40:34 +0000 (16:40 -0700)]
another bite-sized checkpoint on the language design FAQ
R=rsc,iant
DELTA=87 (54 added, 2 deleted, 31 changed)
OCL=35058
CL=35061
Kai Backman [Mon, 28 Sep 2009 22:40:13 +0000 (15:40 -0700)]
- added gcmp for proper ACMP generation, changed all call
sites plus optimized constant code a bit (one less register
used).
- changed conditional branches, might need a re-tweak later
- gave up on agen OINDEX and copied/fixed the version in 8g
go/test: passes 66% (225/339)
R=rsc
APPROVED=rsc
DELTA=148 (67 added, 32 deleted, 49 changed)
OCL=35040
CL=35055
Robert Griesemer [Mon, 28 Sep 2009 21:54:53 +0000 (14:54 -0700)]
permit only one method name per method signature in interface types
(in sync with spec CL 35047)
R=rsc
DELTA=44 (4 added, 8 deleted, 32 changed)
OCL=35048
CL=35054
Rob Pike [Mon, 28 Sep 2009 21:37:14 +0000 (14:37 -0700)]
start of a language design FAQ.
R=rsc
DELTA=224 (214 added, 10 deleted, 0 changed)
OCL=35041
CL=35050
Rob Pike [Mon, 28 Sep 2009 21:36:20 +0000 (14:36 -0700)]
might as well make 6g run faster.... go from gcc -O1 to -O2
R=rsc
DELTA=1 (0 added, 0 deleted, 1 changed)
OCL=35023
CL=35049
Russ Cox [Mon, 28 Sep 2009 21:16:33 +0000 (14:16 -0700)]
disallow interface {x, y()}
R=gri
DELTA=8 (3 added, 0 deleted, 5 changed)
OCL=35045
CL=35047
Robert Griesemer [Mon, 28 Sep 2009 21:10:20 +0000 (14:10 -0700)]
- clarify type declaration (specifying status quo)
DELTA=68 (51 added, 8 deleted, 9 changed)
OCL=35038
CL=35046
Russ Cox [Mon, 28 Sep 2009 21:05:34 +0000 (14:05 -0700)]
disallow interface { x, y() }
R=ken
OCL=35042
CL=35044
Rob Pike [Mon, 28 Sep 2009 00:59:36 +0000 (17:59 -0700)]
add a data section and start populating it with info about allocation, arrays
R=rsc
DELTA=331 (266 added, 61 deleted, 4 changed)
OCL=35024
CL=35030
Rob Pike [Sat, 26 Sep 2009 00:00:22 +0000 (17:00 -0700)]
rewrite the section about imports
DELTA=42 (10 added, 11 deleted, 21 changed)
OCL=35017
CL=35020
Robert Griesemer [Fri, 25 Sep 2009 22:43:43 +0000 (15:43 -0700)]
delete unused file
### 3656
XXstart 3656
XXedit 3656 src/cmd/5g/ggen.c
XXedit 3656 src/pkg/runtime/arm/asm.s
XXedit 3656 test/arm-pass.txt
# submit 3656
hg ci -u 'Kai Backman <kaib@golang.org>' -d '
1253922857 25200' -l - <<'HGEOF'
support for go and defer.
go/test: passes 64% (218/339)
R=rsc
APPROVED=rsc
DELTA=60 (39 added, 0 deleted, 21 changed)
OCL=35018
CL=35018
Robert Griesemer [Fri, 25 Sep 2009 22:43:43 +0000 (15:43 -0700)]
fix to be able to run full gofmt test
TBR=r
OCL=35015
CL=35015
Robert Griesemer [Fri, 25 Sep 2009 22:36:25 +0000 (15:36 -0700)]
- reworked section on import declarations
- added missing <p> tags in various places
DELTA=62 (32 added, 4 deleted, 26 changed)
OCL=35014
CL=35014
Robert Griesemer [Fri, 25 Sep 2009 21:11:03 +0000 (14:11 -0700)]
- fixed sieve.go example (channel directions were wrong)
- cosmetic adjustments
R=r
DELTA=30 (0 added, 0 deleted, 30 changed)
OCL=35010
CL=35012
Austin Clements [Fri, 25 Sep 2009 18:36:27 +0000 (11:36 -0700)]
Add eval and ogle to the build process so they can be kept up
to date.
R=rsc
APPROVED=rsc
DELTA=8 (6 added, 0 deleted, 2 changed)
OCL=35009
CL=35011
Austin Clements [Fri, 25 Sep 2009 16:39:08 +0000 (09:39 -0700)]
Switch ogle to in-tree gosym package. Delete my private sym
package. If a Sym is a function symbol, include a reference
to the Func so it's easily accessible when you're traversing
the list of all symbols. This diff is more interesting than
the proc switch because the gosym interface differs from the
old sym interface.
R=rsc
APPROVED=rsc
DELTA=1957 (34 added, 1868 deleted, 55 changed)
OCL=34969
CL=35008
Austin Clements [Fri, 25 Sep 2009 16:38:10 +0000 (09:38 -0700)]
Fix unused imports
R=rsc
APPROVED=rsc
DELTA=3 (0 added, 3 deleted, 0 changed)
OCL=34970
CL=35007
Austin Clements [Fri, 25 Sep 2009 16:37:35 +0000 (09:37 -0700)]
s/switch _ :=/switch/
R=rsc
APPROVED=rsc
DELTA=36 (0 added, 0 deleted, 36 changed)
OCL=34971
CL=35006
Robert Griesemer [Fri, 25 Sep 2009 02:36:48 +0000 (19:36 -0700)]
rewording around ideal and basic types
DELTA=355 (93 added, 85 deleted, 177 changed)
OCL=34904
CL=34998
Russ Cox [Fri, 25 Sep 2009 00:55:22 +0000 (17:55 -0700)]
comparisons have type bool
R=ken
OCL=34995
CL=34997
Russ Cox [Fri, 25 Sep 2009 00:54:47 +0000 (17:54 -0700)]
test: comparisons have type bool
R=r
DELTA=81 (57 added, 24 deleted, 0 changed)
OCL=34991
CL=34996
Robert Griesemer [Fri, 25 Sep 2009 00:25:25 +0000 (17:25 -0700)]
more cleanup
Robert Griesemer [Fri, 25 Sep 2009 00:25:24 +0000 (17:25 -0700)]
cleanup in personal dir:
- delete some unused files (copies archived elsewhere)
TBR=r
OCL=34994
CL=34994
Rob Pike [Thu, 24 Sep 2009 21:47:34 +0000 (14:47 -0700)]
Sqrt in assembler is worth 3-4X for nbody
R=rsc
DELTA=10 (10 added, 0 deleted, 0 changed)
OCL=34987
CL=34987
Russ Cox [Thu, 24 Sep 2009 21:27:52 +0000 (14:27 -0700)]
install assembly math.Sqrt on amd64
R=r
DELTA=33 (32 added, 0 deleted, 1 changed)
OCL=34983
CL=34986
Russ Cox [Thu, 24 Sep 2009 20:38:18 +0000 (13:38 -0700)]
missing files; cleaned up g4 nothave output.
fixes 386 build.
R=r
DELTA=56 (56 added, 0 deleted, 0 changed)
OCL=34979
CL=34981
Robert Griesemer [Thu, 24 Sep 2009 20:17:09 +0000 (13:17 -0700)]
delete obsolete Makefile
TBR=rsc
OCL=34978
CL=34978
Russ Cox [Thu, 24 Sep 2009 19:53:35 +0000 (12:53 -0700)]
convert 8l to new ELF code.
mostly cut and paste from 6l.
R=r
DELTA=930 (525 added, 182 deleted, 223 changed)
OCL=34976
CL=34976
Russ Cox [Thu, 24 Sep 2009 18:45:08 +0000 (11:45 -0700)]
allow runes >= 0x80 in symbols in #pragmas
R=ken
OCL=34975
CL=34975
Russ Cox [Thu, 24 Sep 2009 18:43:38 +0000 (11:43 -0700)]
add Size method to dwarf.Type
R=r
DELTA=30 (24 added, 3 deleted, 3 changed)
OCL=34950
CL=34974
Russ Cox [Thu, 24 Sep 2009 18:43:19 +0000 (11:43 -0700)]
cgo checkpoint.
can write all 3 output files and then compile them by hand.
R=r
DELTA=919 (841 added, 16 deleted, 62 changed)
OCL=34954
CL=34973
Austin Clements [Thu, 24 Sep 2009 16:07:47 +0000 (09:07 -0700)]
Switch ogle over to the in-tree debug/proc package. Fix
debug/proc to install to the right place. Delete the old
ptrace package. The diff looks huge, but it's mostly
s/ptrace/proc/.
R=rsc
APPROVED=rsc
DELTA=1940 (10 added, 1835 deleted, 95 changed)
OCL=34966
CL=34968
Austin Clements [Thu, 24 Sep 2009 15:32:59 +0000 (08:32 -0700)]
Fix declared and not used errors in ogle.
R=rsc
APPROVED=rsc
DELTA=8 (0 added, 2 deleted, 6 changed)
OCL=34854
CL=34965
Austin Clements [Thu, 24 Sep 2009 15:32:10 +0000 (08:32 -0700)]
Fix declared and not set errors in old ptrace package (still
used by ogle)
R=rsc
APPROVED=rsc
DELTA=4 (0 added, 1 deleted, 3 changed)
OCL=34852
CL=34964
Austin Clements [Thu, 24 Sep 2009 15:25:14 +0000 (08:25 -0700)]
Fix declared and not used errors and unused import errors in
the interpreter and update code to use ast.BasicDecl and
multi-type switch. There are still a lot of "switch _ :=
x.(type)" that should make use of the new type switch syntax,
but those will be a different CL.
R=rsc
APPROVED=rsc
DELTA=58 (16 added, 23 deleted, 19 changed)
OCL=34853
CL=34963
Austin Clements [Thu, 24 Sep 2009 15:19:16 +0000 (08:19 -0700)]
Fix declared and not used errors in old sym package (ogle
hasn't been ported to the new sym package yet)
R=rsc
APPROVED=rsc
DELTA=9 (0 added, 1 deleted, 8 changed)
OCL=34851
CL=34962
Russ Cox [Thu, 24 Sep 2009 08:37:27 +0000 (01:37 -0700)]
go/printer: fix sync bug - avoid sending on errors twice -
and report node type in error
R=gri
DELTA=4 (3 added, 0 deleted, 1 changed)
OCL=34949
CL=34955
Russ Cox [Thu, 24 Sep 2009 04:38:52 +0000 (21:38 -0700)]
change code font to "monospace", which will
let the browser use the font the user has set up
as the default fixed-width font, instead of forcing Courier.
also set the size to 100%, which means 100% of the
font size in the surrounding text. this looks a little
better in the main body but much better when the
code is in a heading (like Package unsafe).
R=r
DELTA=4 (1 added, 0 deleted, 3 changed)
OCL=34947
CL=34947
Rob Pike [Wed, 23 Sep 2009 20:02:14 +0000 (13:02 -0700)]
expand ticker interface to allow a client to shut down a ticker.
existing interface still works.
R=rsc
DELTA=50 (32 added, 2 deleted, 16 changed)
OCL=34930
CL=34932
Rob Pike [Wed, 23 Sep 2009 19:31:57 +0000 (12:31 -0700)]
process tutorial into new format
R=rsc
DELTA=161 (57 added, 56 deleted, 48 changed)
OCL=34926
CL=34929
Russ Cox [Tue, 22 Sep 2009 23:56:28 +0000 (16:56 -0700)]
nacl - run tests under emulator.
special all-nacl.bash and test/run-nacl that
run just the tests known to work under nacl.
the rest requires closures.
fix another bug or two in syscall.
R=r
DELTA=420 (410 added, 8 deleted, 2 changed)
OCL=34882
CL=34907
Russ Cox [Tue, 22 Sep 2009 23:28:32 +0000 (16:28 -0700)]
changes to accommodate nacl:
* change ldt0setup to set GS itself; nacl won't let us do it.
* change breakpoint to INT $3 so 8l can translate to HLT for nacl.
* panic if closure is needed on nacl.
* do not try to access symbol table on nacl.
* mmap in 64kB chunks.
nacl support:
* system calls, threading, locks.
R=r
DELTA=365 (357 added, 5 deleted, 3 changed)
OCL=34880
CL=34906
Rob Pike [Tue, 22 Sep 2009 21:53:48 +0000 (14:53 -0700)]
restore the old algorithm. the new one is more memory efficient in large cases
but too slow across the board.
R=rsc
DELTA=315 (50 added, 219 deleted, 46 changed)
OCL=34868
CL=34902
Rob Pike [Tue, 22 Sep 2009 21:13:40 +0000 (14:13 -0700)]
updated numbers after more slice inlining
R=rsc
DELTA=57 (57 added, 0 deleted, 0 changed)
OCL=34896
CL=34901
Kai Backman [Tue, 22 Sep 2009 20:13:23 +0000 (13:13 -0700)]
fix bad code generation.
go/test: passes 64% (215/337) tests
metric updated, had total number of tests wrong. number of
failing tests is down from 129 to 122.
R=rsc
APPROVED=rsc
DELTA=228 (12 added, 5 deleted, 211 changed)
OCL=34897
CL=34899
Russ Cox [Tue, 22 Sep 2009 17:34:44 +0000 (10:34 -0700)]
nacl syscall: write return values to correct stack location
R=r
DELTA=18 (0 added, 0 deleted, 18 changed)
OCL=34894
CL=34894
Russ Cox [Tue, 22 Sep 2009 14:49:49 +0000 (07:49 -0700)]
nacl syscall package - machine generated files
R=r
DELTA=515 (515 added, 0 deleted, 0 changed)
OCL=34881
CL=34891
Russ Cox [Tue, 22 Sep 2009 14:49:31 +0000 (07:49 -0700)]
nacl syscall package.
similar tweaks to make debug/proc, net, os build.
R=r
DELTA=861 (855 added, 4 deleted, 2 changed)
OCL=34877
CL=34890
Russ Cox [Tue, 22 Sep 2009 14:48:43 +0000 (07:48 -0700)]
use $(shell uname) instead of $GOOS when
deciding what the host process support is.
this makes a cross-compiling (e.g., GOOS=nacl) build
still generate valid host debugger binaries.
R=r
DELTA=5 (0 added, 0 deleted, 5 changed)
OCL=34878
CL=34889
Russ Cox [Tue, 22 Sep 2009 08:10:40 +0000 (01:10 -0700)]
nacl:
add jmp to constant pc.
generate HLT for INT $3
do not insert NOPs between REP/REPN and subsequent instruction.
allow very long time for convergence.
R=ken
OCL=34879
CL=34879
Russ Cox [Tue, 22 Sep 2009 05:45:19 +0000 (22:45 -0700)]
test of named operations
R=r
DELTA=305 (305 added, 0 deleted, 0 changed)
OCL=34848
CL=34875
Ken Thompson [Tue, 22 Sep 2009 01:23:16 +0000 (18:23 -0700)]
more inlining of sliceslice
R=rsc
OCL=34871
CL=34871
Robert Griesemer [Tue, 22 Sep 2009 01:07:20 +0000 (18:07 -0700)]
improved spacing around if, switch, and for control clauses
R=r
DELTA=89 (82 added, 5 deleted, 2 changed)
OCL=34870
CL=34870
Russ Cox [Mon, 21 Sep 2009 22:48:22 +0000 (15:48 -0700)]
rewrite RET, indirect CALL, indirect JMP for nacl.
can JMP or CALL indirect through a register R
provided the preceding instruction is AND $~31, R.
R=ken
OCL=34863
CL=34867
Russ Cox [Mon, 21 Sep 2009 22:46:50 +0000 (15:46 -0700)]
convert 386 to use %gs instead of %fs for extern register.
required for nacl and may be nicer for ffi,
because %gs is the standard register for thread-local storage.
R=ken
OCL=34861
CL=34866
Russ Cox [Mon, 21 Sep 2009 22:45:55 +0000 (15:45 -0700)]
ideal bools and related fixes
R=ken
OCL=34859
CL=34865
Russ Cox [Mon, 21 Sep 2009 22:44:10 +0000 (15:44 -0700)]
add required conversions; bug in compiler let it slip through
R=r
DELTA=2 (0 added, 0 deleted, 2 changed)
OCL=34860
CL=34864
Rob Pike [Mon, 21 Sep 2009 19:59:14 +0000 (12:59 -0700)]
move strings.Buffer into bytes
delete strings.Buffer
add a test for a bug not caught before (mustn't install zero-length blocks)
R=rsc
DELTA=987 (289 added, 587 deleted, 111 changed)
OCL=34850
CL=34850
Rob Pike [Mon, 21 Sep 2009 19:20:15 +0000 (12:20 -0700)]
step 2 of the great buffer shift.
make strings.Buffer handle strings and bytes with comparable efficiency.
if ok, next step will be to move this code to bytes.Buffer and terminate
strings.Buffer's short happy life.
R=rsc
DELTA=292 (212 added, 0 deleted, 80 changed)
OCL=34837
CL=34849
Russ Cox [Mon, 21 Sep 2009 16:41:21 +0000 (09:41 -0700)]
accept CALL $(constant) to call absolute PC
R=ken
OCL=34845
CL=34845
Nigel Tao [Mon, 21 Sep 2009 02:08:03 +0000 (19:08 -0700)]
Unit tests for image/png, based off the semi-official pngsuite from
libpng.org.
R=rsc
APPROVED=r
DELTA=1176 (1175 added, 1 deleted, 0 changed)
OCL=34727
CL=34838
Robert Griesemer [Sat, 19 Sep 2009 18:52:40 +0000 (11:52 -0700)]
- filter trailing whitespace
- removed some unused code
R=rsc
DELTA=103 (84 added, 15 deleted, 4 changed)
OCL=34816
CL=34829
Rob Pike [Sat, 19 Sep 2009 18:41:26 +0000 (11:41 -0700)]
hakuho
R=ken
DELTA=1 (0 added, 0 deleted, 1 changed)
OCL=34828
CL=34828
Russ Cox [Sat, 19 Sep 2009 04:17:16 +0000 (21:17 -0700)]
fix build
R=kaib
OCL=34823
CL=34823
Kai Backman [Sat, 19 Sep 2009 02:09:29 +0000 (19:09 -0700)]
expanded arm regression testing. will go away once 5g is compliant
R=rsc
APPROVED=rsc
DELTA=300 (297 added, 0 deleted, 3 changed)
OCL=34813
CL=34821
Kai Backman [Sat, 19 Sep 2009 02:09:12 +0000 (19:09 -0700)]
added emulator support for arm.
R=rsc
APPROVED=rsc
DELTA=7 (3 added, 0 deleted, 4 changed)
OCL=34661
CL=34820
Russ Cox [Sat, 19 Sep 2009 01:57:15 +0000 (18:57 -0700)]
8l: step toward native client.
- ELF header bits and addresses
- do not let instructions span 32-byte boundary
- align CALLs so return is to 32-byte boundary
- align indirect jump targets to 32-byte boundary
(only possible indirect jumps are function entries)
still to do:
- replace indirect jump, indirect call, and ret with
nacl-approved instruction sequences
- switch to GS segment for m-local storage
R=ken
OCL=34818
CL=34818
Russ Cox [Sat, 19 Sep 2009 00:08:18 +0000 (17:08 -0700)]
merge first pass into main loop in span calculation.
having one copy will cut nacl changes in half.
R=ken
OCL=34815
CL=34815
Kai Backman [Fri, 18 Sep 2009 23:45:41 +0000 (16:45 -0700)]
changed 5c calling convention to use stack exclusively for in
params. a number of fixes to assembly routines that assumed R0
had the first arg. one stack offset fix, arm pushes the link
register on stack top.
go/test: passes 65% (235/364) tests
R=rsc
APPROVED=rsc
DELTA=20 (11 added, 0 deleted, 9 changed)
OCL=34809
CL=34812
Russ Cox [Fri, 18 Sep 2009 19:56:18 +0000 (12:56 -0700)]
fix build again; this time for sure. sigh
TBR=r
OCL=34803
CL=34803
Kai Backman [Fri, 18 Sep 2009 19:47:44 +0000 (12:47 -0700)]
fix 5g -S and -g output
R=rsc
APPROVED=rsc
DELTA=115 (93 added, 14 deleted, 8 changed)
OCL=34798
CL=34802
Kai Backman [Fri, 18 Sep 2009 19:47:25 +0000 (12:47 -0700)]
revert setting of name from type. already set correctly.
R=rsc
APPROVED=rsc
DELTA=1 (0 added, 1 deleted, 0 changed)
OCL=34799
CL=34801
Russ Cox [Fri, 18 Sep 2009 19:45:34 +0000 (12:45 -0700)]
fix build - missing file
TBR=r
OCL=34800
CL=34800
Robert Griesemer [Fri, 18 Sep 2009 18:58:35 +0000 (11:58 -0700)]
- added heading to operator precedence section so it's easy to find
- fixed broken link to function literals section
- minor adjustments
R=r
DELTA=20 (1 added, 3 deleted, 16 changed)
OCL=34792
CL=34794
Russ Cox [Fri, 18 Sep 2009 18:52:00 +0000 (11:52 -0700)]
cgo: can look up C identifier kind (type or value) and type
gmp.go:197:4: type mpz_t C type mpz_t
gmp.go:205:2: call mpz_init C value func(mpz_ptr) void
gmp.go:206:2: call mpz_set C value func(mpz_ptr, mpz_srcptr) void
gmp.go:221:2: call mpz_init C value func(mpz_ptr) void
gmp.go:227:7: call size_t C type size_t
gmp.go:228:2: call mpz_export C value func(*void, *size_t, int, size_t, int, size_t, mpz_srcptr) *void
gmp.go:235:13: call mpz_sizeinbase C value func(mpz_srcptr, int) size_t
gmp.go:241:2: call mpz_set C value func(mpz_ptr, mpz_srcptr) void
gmp.go:252:3: call mpz_import C value func(mpz_ptr, size_t, int, size_t, int, size_t, *const void) void
gmp.go:261:2: call mpz_set_si C value func(mpz_ptr, long int) void
gmp.go:273:5: call mpz_set_str C value func(mpz_ptr, *const char, int) int
gmp.go:282:9: call mpz_get_str C value func(*char, int, mpz_srcptr) *char
gmp.go:287:3: call mpz_clear C value func(mpz_ptr) void
gmp.go:302:2: call mpz_add C value func(mpz_ptr, mpz_srcptr, mpz_srcptr) void
gmp.go:311:2: call mpz_sub C value func(mpz_ptr, mpz_srcptr, mpz_srcptr) void
gmp.go:320:2: call mpz_mul C value func(mpz_ptr, mpz_srcptr, mpz_srcptr) void
gmp.go:329:2: call mpz_tdiv_q C value func(mpz_ptr, mpz_srcptr, mpz_srcptr) void
gmp.go:339:2: call mpz_tdiv_r C value func(mpz_ptr, mpz_srcptr, mpz_srcptr) void
gmp.go:348:2: call mpz_mul_2exp C value func(mpz_ptr, mpz_srcptr, long unsigned int) void
gmp.go:356:2: call mpz_div_2exp C value func(mpz_ptr, mpz_srcptr, long unsigned int) void
gmp.go:367:3: call mpz_pow_ui C value func(mpz_ptr, mpz_srcptr, long unsigned int) void
gmp.go:369:3: call mpz_powm C value func(mpz_ptr, mpz_srcptr, mpz_srcptr, mpz_srcptr) void
gmp.go:378:2: call mpz_neg C value func(mpz_ptr, mpz_srcptr) void
gmp.go:386:2: call mpz_abs C value func(mpz_ptr, mpz_srcptr) void
gmp.go:404:9: call mpz_cmp C value func(mpz_srcptr, mpz_srcptr) int
gmp.go:413:2: call mpz_tdiv_qr C value func(mpz_ptr, mpz_ptr, mpz_srcptr, mpz_srcptr) void
gmp.go:426:2: call mpz_gcdext C value func(mpz_ptr, mpz_ptr, mpz_ptr, mpz_srcptr, mpz_srcptr) void
R=r
DELTA=938 (628 added, 308 deleted, 2 changed)
OCL=34733
CL=34791
Russ Cox [Fri, 18 Sep 2009 18:50:24 +0000 (11:50 -0700)]
add DWARF method to elf.File.
test both ELF and Mach-O in dwarf package.
R=r
DELTA=83 (44 added, 10 deleted, 29 changed)
OCL=34717
CL=34790
Russ Cox [Fri, 18 Sep 2009 18:49:22 +0000 (11:49 -0700)]
Mach-O file reading
R=r
DELTA=784 (784 added, 0 deleted, 0 changed)
OCL=34715
CL=34788
Austin Clements [Fri, 18 Sep 2009 16:11:19 +0000 (09:11 -0700)]
Rudimentary command shell for Ogle. Hack to prevent linker
from inlining newprocreadylocked. Fix type bridge's handling
of basic types. Include interpreter's Thread in bridged
native function calls.
; load . "6.out"
Started 6.out
; BpSet("main·merge")
; ContWait()
breakpoint at 0x400800
=> 400800 main·merge /home/austin/src-go1/usr/austin/ptrace/test/sort.go:19
; bt
=> 400800 main·merge /home/austin/src-go1/usr/austin/ptrace/test/sort.go:19
400b6a main·mergeSort+0x1be /home/austin/src-go1/usr/austin/ptrace/test/sort.go:34
448313 goexit /home/austin/src-go1/src/pkg/runtime/proc.c:133
; main.merge.a
{1}
; load . "pid:25753"
Attached to 25753
; bt
=> 479ddf syscall·Syscall+0x24 /home/austin/src-go1/src/pkg/syscall/asm_linux_amd64.s:24
47c011 syscall·Read+0x5d /home/austin/src-go1/src/pkg/syscall/zsyscall_linux_amd64.go:368
4119e5 os·*File·Read+0x5f /home/austin/src-go1/src/pkg/os/file.go:122
427bf3 bufio·*Reader·fill+0x116 /home/austin/src-go1/src/pkg/bufio/bufio.go:105
428361 bufio·*Reader·ReadSlice+0x195 /home/austin/src-go1/src/pkg/bufio/bufio.go:244
40204a ogle·Main+0x94 /home/austin/src-go1/usr/austin/ogle/cmd.go:226
40080f main·main+0xf /home/austin/src-go1/usr/austin/ogle/main.go:6
41c4b8 mainstart+0xf /home/austin/src-go1/src/pkg/runtime/amd64/asm.s:55
41531f goexit /home/austin/src-go1/src/pkg/runtime/proc.c:133
R=rsc
APPROVED=rsc
DELTA=433 (420 added, 2 deleted, 11 changed)
OCL=34410
CL=34782
Austin Clements [Fri, 18 Sep 2009 16:09:40 +0000 (09:09 -0700)]
Implement remote variables
R=rsc
APPROVED=rsc
DELTA=282 (281 added, 0 deleted, 1 changed)
OCL=34407
CL=34781
Rob Pike [Fri, 18 Sep 2009 06:51:06 +0000 (23:51 -0700)]
use buf.String() instead of string(buf.Bytes())
use strings.Buffer instead of bytes.Buffer in some places
R=rsc
DELTA=40 (0 added, 3 deleted, 37 changed)
OCL=34770
CL=34775