Austin Clements
8b7951495c
Implement forking debugged processes.
...
R=rsc
APPROVED=rsc
DELTA=81 (53 added, 3 deleted, 25 changed)
OCL=31651
CL=31675
2009-07-15 10:17:56 -07:00
Austin Clements
c105de748d
Implementation of process tracing using Linux's ptrace.
...
R=rsc
APPROVED=rsc
DELTA=1543 (1528 added, 0 deleted, 15 changed)
OCL=31570
CL=31630
2009-07-14 15:12:10 -07:00
Austin Clements
9de5df89c3
Give ptrace code a real home.
...
R=rsc
APPROVED=rsc
DELTA=422 (211 added, 211 deleted, 0 changed)
OCL=31425
CL=31431
2009-07-09 17:35:32 -07:00
Austin Clements
76fef1deec
Process tracing interface.
...
This is meant to be implemented per platform and used by
higher-level debugging libraries.
R=rsc
APPROVED=rsc
DELTA=211 (211 added, 0 deleted, 0 changed)
OCL=31003
CL=31423
2009-07-09 17:10:12 -07:00
Robert Griesemer
d8e4446d12
- install gofmt in src/cmd/gofmt
...
- remove some left-over files
R=rsc
DELTA=1465 (281 added, 1181 deleted, 3 changed)
OCL=30350
CL=30353
2009-06-16 12:03:32 -07:00
Robert Griesemer
a893db8767
gofmt (final resting place TBD):
...
- replacement for pretty; app to format a single .go file
printer.go (pkg/go/printer):
- replacement for astprinter.go; implements AST printing
- also replaces pkg/go/ast/format.go for now
cleanups:
- removed/saved away old code
R=r,rsc,iant
DELTA=2833 (1183 added, 1628 deleted, 22 changed)
OCL=30226
CL=30306
2009-06-15 16:23:16 -07:00
Rob Pike
d90e7cbac6
mv src/lib to src/pkg
...
tests: all.bash passes, gobuild still works, godoc still works.
R=rsc
OCL=30096
CL=30102
2009-06-09 09:53:44 -07:00
Robert Griesemer
bbc2c03852
- godoc periodic sync for Linux and Darwin
...
- support debug/sync (if automatic sync is enabled in the first place)
- removed debug/restart feature
R=rsc
DELTA=97 (37 added, 27 deleted, 33 changed)
OCL=30068
CL=30079
2009-06-08 18:09:33 -07:00
Robert Griesemer
80ca2afd08
issue http redirect when needed
...
R=rsc
DELTA=31 (6 added, 8 deleted, 17 changed)
OCL=30046
CL=30051
2009-06-08 11:49:29 -07:00
Robert Griesemer
b71598f704
set reasonable initial time stamp (instead of begin of epoch)
...
R=rsc
DELTA=1 (1 added, 0 deleted, 0 changed)
OCL=29970
CL=29973
2009-06-05 23:54:44 -07:00
Robert Griesemer
bd61c4e56e
disable automatic p4 sync (new default)
...
TBR=rsc
DELTA=1 (0 added, 0 deleted, 1 changed)
OCL=29969
CL=29969
2009-06-05 23:28:02 -07:00
Robert Griesemer
ebf38bf33f
- cleanup: remove use of local ReadFile in favor of io.ReadFile
...
- don't show p4 sync output if -verbose is not set
R=rsc
DELTA=25 (5 added, 15 deleted, 5 changed)
OCL=29962
CL=29962
2009-06-05 17:55:55 -07:00
Robert Griesemer
42cf59a752
show remote addr instead of host in log lines
...
R=rsc
DELTA=1 (0 added, 0 deleted, 1 changed)
OCL=29961
CL=29961
2009-06-05 17:08:22 -07:00
Robert Griesemer
8604e18093
- added goroutine to automatically p4 sync the current workspace
...
- set "Updated" timestamp on served pages to p4 sync time
R=rsc
DELTA=72 (66 added, 3 deleted, 3 changed)
OCL=29959
CL=29959
2009-06-05 16:48:20 -07:00
Russ Cox
6609d2f88d
restructure makefiles, scripts to factor out O= logic.
...
remove a few hardcoded paths elsewhere too.
R=r,gri
DELTA=123 (44 added, 15 deleted, 64 changed)
OCL=29914
CL=29945
2009-06-05 10:59:55 -07:00
Robert Griesemer
aa9ce6148a
change datafmt syntax to use '@' instead of '^' (to match
...
convention used in template.go)
R=rsc
DELTA=22 (3 added, 1 deleted, 18 changed)
OCL=29780
CL=29782
2009-06-02 18:03:47 -07:00
Robert Griesemer
8083467d62
- renamed format -> datafmt
...
- factored out datafmt-specifics from pretty to ast
R=rsc
DELTA=3580 (1810 added, 1763 deleted, 7 changed)
OCL=29770
CL=29774
2009-06-02 17:18:27 -07:00
Robert Griesemer
d7acfc75cd
format package
...
R=r,rsc
DELTA=2871 (1712 added, 1118 deleted, 41 changed)
OCL=29222
CL=29704
2009-06-01 19:13:44 -07:00
Russ Cox
99128fc7ab
move pretty/comment.go into go/doc.
...
extract comment text code out of go/doc/doc.go into comment.go.
no code changes, just rearrangement.
first step so i can write tests.
R=gri
DELTA=633 (318 added, 301 deleted, 14 changed)
OCL=29269
CL=29293
2009-05-22 21:42:16 -07:00
Robert Griesemer
7d4765e2d3
show subdirectories if present in a package dir
...
R=rsc
DELTA=184 (69 added, 73 deleted, 42 changed)
OCL=29178
CL=29253
2009-05-22 10:24:28 -07:00
Robert Griesemer
787dd4d3f3
semi-weekly snapshot:
...
- format.go implementation complete
- lots of documentation added (not quite complete)
TBR=r
OCL=29130
CL=29130
2009-05-20 17:09:59 -07:00
Robert Griesemer
500f6b8e84
fix typo
...
TBR=rsc
OCL=29010
CL=29010
2009-05-18 16:48:38 -07:00
Robert Griesemer
7ff2536633
- make godoc restart feature work properly
...
R=rsc
DELTA=11 (10 added, 0 deleted, 1 changed)
OCL=29007
CL=29009
2009-05-18 16:26:34 -07:00
Robert Griesemer
1ed725d7cd
- changed parser to return os.Error, removed ErrorHandler
...
- added IsValid predicate to token.Position
- updated pretty, godoc, gobuild
- updated/expanded test cases
R=rsc
DELTA=265 (97 added, 78 deleted, 90 changed)
OCL=28961
CL=29005
2009-05-18 14:59:16 -07:00
Robert Griesemer
e8c1e2b93a
get rid of unused files in my home dir
...
TBR=r
DELTA=9270 (0 added, 9270 deleted, 0 changed)
OCL=28958
CL=28958
2009-05-15 19:15:45 -07:00
Robert Griesemer
b7585a31b7
weekly snapshot:
...
format.go:
- better error handling, indentation, support for defaults,
environments for custom formatters, cleanups (more functionality, less code)
pretty.go:
- better comment printing using format.go
made test script more robust
TBR=r
DELTA=622 (175 added, 305 deleted, 142 changed)
OCL=28956
CL=28956
2009-05-15 18:52:59 -07:00
Robert Griesemer
8ee8fdea3c
restart functionality
...
R=rsc
DELTA=21 (19 added, 0 deleted, 2 changed)
OCL=28938
CL=28941
2009-05-15 15:45:35 -07:00
Robert Griesemer
05851636f3
godoc fix: relative paths were incorrect
...
R=r
DELTA=13 (1 added, 6 deleted, 6 changed)
OCL=28840
CL=28844
2009-05-14 14:59:51 -07:00
Robert Griesemer
f3b08744a2
Simplified AST:
...
- one node for array and slice types
- one node for index and slice expressions
- simplified parser, astprinter, and ast.txt
R=r
DELTA=71 (0 added, 43 deleted, 28 changed)
OCL=28768
CL=28768
2009-05-13 15:18:05 -07:00
David Symonds
6c384d2268
Allow http.Redirect to do both temporary (307) and permanent (301) redirects.
...
This also adds a missing 'return' when a malformed URL is passed to it.
R=rsc
APPROVED=rsc
DELTA=30 (13 added, 2 deleted, 15 changed)
OCL=28598
CL=28710
2009-05-12 15:41:19 -07:00
Robert Griesemer
c6da3e5a69
A couple of godoc improvements:
...
- sort directories before printing
- apply filtering to factory functions and methods
- remove a couple of unused files
R=r
DELTA=84 (34 added, 40 deleted, 10 changed)
OCL=28657
CL=28657
2009-05-11 16:52:59 -07:00
Robert Griesemer
5a11a46e2d
weekly snapshot
...
- godoc updated to work w/new directory structure
TBR=r
OCL=28624
CL=28624
2009-05-11 09:47:53 -07:00
Russ Cox
917aa35f8f
implications of stricter type equality:
...
if both types are named, they must be
the same type (arising from the same
declaration).
R=r,gri
DELTA=44 (21 added, 4 deleted, 19 changed)
OCL=28436
CL=28577
2009-05-08 15:40:14 -07:00
Russ Cox
918afd9491
move things out of sys into os and runtime
...
R=r
OCL=28569
CL=28573
2009-05-08 15:21:41 -07:00
Rob Pike
01712ae7d3
embeddability: change bufio.BufRead to bufio.Reader etc.
...
R=rsc
DELTA=112 (0 added, 4 deleted, 108 changed)
OCL=28537
CL=28543
2009-05-08 11:52:39 -07:00
Rob Pike
c8b47c6fce
Name change to improve embeddability:
...
io.Read->io.Reader
io.Write,Close,etc.->io.Writer,Closer etc.
R=rsc
DELTA=190 (0 added, 0 deleted, 190 changed)
OCL=28525
CL=28535
2009-05-08 11:22:57 -07:00
Russ Cox
63629d5307
minor cleanup, not required by compiler changes
...
R=r
DELTA=14 (1 added, 4 deleted, 9 changed)
OCL=28447
CL=28509
2009-05-08 10:14:55 -07:00
Robert Griesemer
d76f095750
semi-weekly snapshot:
...
- format-driven pretty printing now handles all of Go code
- better error handling
R=r
OCL=28370
CL=28372
2009-05-06 16:28:18 -07:00
Robert Griesemer
19c239c9af
- remove wrong fix
...
(this corresponds to the currently running version of godoc)
R=r
DELTA=11 (0 added, 10 deleted, 1 changed)
OCL=28238
CL=28238
2009-05-04 15:04:32 -07:00
Robert Griesemer
0d6a5f417f
weekly snapshot:
...
- template-driven ast printing now can successfully
reproduce entire Go programs
next steps:
- fine-tuning of output
- print interspersed comments
- cleanup and testing against all Go programs
- replace astprinter
R=r
OCL=28181
CL=28181
2009-05-01 19:32:41 -07:00
Robert Griesemer
22301e8cea
Some adjustments to godoc:
...
- work-around for incorrect import path
- added tmpl root in order to run against a goroot w/o templates
- clarifications
Daily snapshot of syntax-driven formatter. Some progress.
Updated gccgo Makefile.
TBR=r
OCL=28004
CL=28004
2009-04-28 19:11:37 -07:00
Robert Griesemer
bf53e16f6d
- install doc in lib/go
...
- adjust dependent files
R=rsc
DELTA=1132 (567 added, 562 deleted, 3 changed)
OCL=27862
CL=27862
2009-04-25 17:01:41 -07:00
Robert Griesemer
9b6009b651
- minor formatting and capitalization (export) changes
...
TBR=rsc
OCL=27861
CL=27861
2009-04-25 16:52:30 -07:00
Robert Griesemer
af8036aa6b
- renamed docprinter.go -> doc.go
...
- adjusted dependent files
(no changes in doc.go)
TBR=rsc
OCL=27860
CL=27860
2009-04-25 16:48:00 -07:00
Robert Griesemer
f8ff3b1055
daily snapshot:
...
- more work on template-driven ast formatting
- added preliminary test suite
- added documentation
TBR=r
OCL=27858
CL=27858
2009-04-25 16:36:17 -07:00
Robert Griesemer
3aa892c4f9
daily snapshot:
...
- more work on template-driven ast printing
R=r
OCL=27851
CL=27851
2009-04-24 17:22:58 -07:00
Robert Griesemer
448a7b46a9
daily snapshot:
...
- minor bug fixes in pretty, godoc
- first cut at template-driven printing of ast
TBR=r
OCL=27825
CL=27825
2009-04-23 21:53:01 -07:00
Rob Pike
9d70646fcf
allow godoc to match on regular expressions.
...
if the name contains a metacharacter, use regexp matching;
otherwise require strict equality.
now
godoc flag '.*Var'
can give you all the FooVar functions.
R=gri
DELTA=19 (19 added, 0 deleted, 0 changed)
OCL=27711
CL=27713
2009-04-21 22:46:19 -07:00
Rob Pike
4b62e8d7ef
fix template.
...
.or works in .repeated so remove the comment.
the bug was in the template: .section executes iff the field is non-empty.
R=gri
DELTA=13 (6 added, 7 deleted, 0 changed)
OCL=27710
CL=27712
2009-04-21 22:26:08 -07:00
Robert Griesemer
dc08ad4f37
remove lots of accumulated crud:
...
- delete utility files which contained functionality that is now elsewhere
(or saved the files away for now)
- cleanup Makefile (remove unnecessary deps)
- minor adjustments to godoc, fixed a couple of bugs
- make pretty.go self-contained
TBR=r
DELTA=625 (81 added, 510 deleted, 34 changed)
OCL=27700
CL=27702
2009-04-21 18:37:48 -07:00