1
0
mirror of https://github.com/golang/go synced 2024-11-15 09:40:34 -07:00

[release-branch.go1] cmd/gc: limit data disassembly to -SS

««« backport 14ce24bcd818
cmd/gc: limit data disassembly to -SS

This makes -S useful again.

R=ken2
CC=golang-dev
https://golang.org/cl/6302054

»»»
This commit is contained in:
Russ Cox 2012-06-13 16:24:53 -04:00
parent a2f13c8cf2
commit 5169191e96
4 changed files with 9 additions and 4 deletions

View File

@ -198,7 +198,8 @@ dumpfuncs(void)
if(isblank(pl->name))
continue;
if(debug['S']) {
// -S prints code; -SS prints code and data
if(debug['S'] && (pl->name || debug['S']>1)) {
s = S;
if(pl->name != N)
s = pl->name->sym;

View File

@ -244,7 +244,8 @@ dumpfuncs(void)
if(isblank(pl->name))
continue;
if(debug['S']) {
// -S prints code; -SS prints code and data
if(debug['S'] && (pl->name || debug['S']>1)) {
s = S;
if(pl->name != N)
s = pl->name->sym;

View File

@ -242,7 +242,8 @@ dumpfuncs(void)
if(isblank(pl->name))
continue;
if(debug['S']) {
// -S prints code; -SS prints code and data
if(debug['S'] && (pl->name || debug['S']>1)) {
s = S;
if(pl->name != N)
s = pl->name->sym;

View File

@ -47,7 +47,9 @@ Flags:
-N
disable optimizations
-S
write assembly language text to standard output
write assembly language text to standard output (code only)
-SS
write assembly language text to standard output (code and data)
-u
disallow importing packages not marked as safe
-V