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

Unified Diff: cmd/ogleproxy/main.go

Issue 77580045: code review 77580045: ogle: add name->PC lookup for functions (Closed)
Patch Set: diff -r d44ba9529c0f https://code.google.com/p/ogle Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | program/client/client.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cmd/ogleproxy/main.go
===================================================================
--- a/cmd/ogleproxy/main.go
+++ b/cmd/ogleproxy/main.go
@@ -29,15 +29,14 @@
flag.Usage()
os.Exit(2)
}
- fd, err := os.Open(*textFlag)
+ s, err := server.New(*textFlag)
if err != nil {
- fmt.Printf("OGLE BAD\n%s\n", err)
+ fmt.Println("OGLE BAD\n%s\n", err)
os.Exit(2)
}
- fd.Close()
- err = rpc.Register(&server.Server{})
+ err = rpc.Register(s)
if err != nil {
- fmt.Printf("OGLE BAD\n%s\n", err)
+ fmt.Println("OGLE BAD\n%s\n", err)
os.Exit(2)
}
fmt.Println("OGLE OK")
« no previous file with comments | « no previous file | program/client/client.go » ('j') | no next file with comments »

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