summaryrefslogtreecommitdiff
path: root/src/cmd/dist
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2014-11-14 13:58:31 -0500
committerAustin Clements <austin@google.com>2014-11-14 13:58:31 -0500
commit2370a59167d20d1759ba409391b74278707acebc (patch)
treed0243cc1473aec5d5b9b7863d4bf2d689cb50a94 /src/cmd/dist
parent5462978cf79ac14328bf8eceeee1c92dc36f0dbd (diff)
downloadgo-2370a59167d20d1759ba409391b74278707acebc.tar.gz
[dev.power64] 6g,9g: formatters for Prog and Addr details
The pretty printers for these make it hard to understand what's actually in the fields of these structures. These "ugly printers" show exactly what's in each field, which can be useful for understanding and debugging code. LGTM=rsc R=rsc CC=golang-codereviews https://codereview.appspot.com/175780043
Diffstat (limited to 'src/cmd/dist')
-rw-r--r--src/cmd/dist/buildgc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cmd/dist/buildgc.c b/src/cmd/dist/buildgc.c
index 39679fb72..64434d51e 100644
--- a/src/cmd/dist/buildgc.c
+++ b/src/cmd/dist/buildgc.c
@@ -184,12 +184,14 @@ mkanames(char *dir, char *file)
continue;
p = lines.p[i] + 3;
+ if(xstrcmp(p, "LAST") == 0)
+ continue;
vadd(&dnames[n], p);
j++;
}
}
if(j>0){
- bwritestr(&out, bprintf(&b, "char* dnames%c[] = {\n", ch));
+ bwritestr(&out, bprintf(&b, "char* dnames%c[D_LAST] = {\n", ch));
for(i=0; i<nelem(dnames); i++) {
if(dnames[i].len == 0)
continue;