mirror of
https://github.com/golang/go
synced 2024-11-20 10:34:42 -07:00
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:
parent
2a9410c19c
commit
b185de82a4
@ -198,7 +198,8 @@ dumpfuncs(void)
|
|||||||
if(isblank(pl->name))
|
if(isblank(pl->name))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if(debug['S']) {
|
// -S prints code; -SS prints code and data
|
||||||
|
if(debug['S'] && (pl->name || debug['S']>1)) {
|
||||||
s = S;
|
s = S;
|
||||||
if(pl->name != N)
|
if(pl->name != N)
|
||||||
s = pl->name->sym;
|
s = pl->name->sym;
|
||||||
|
@ -244,7 +244,8 @@ dumpfuncs(void)
|
|||||||
if(isblank(pl->name))
|
if(isblank(pl->name))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if(debug['S']) {
|
// -S prints code; -SS prints code and data
|
||||||
|
if(debug['S'] && (pl->name || debug['S']>1)) {
|
||||||
s = S;
|
s = S;
|
||||||
if(pl->name != N)
|
if(pl->name != N)
|
||||||
s = pl->name->sym;
|
s = pl->name->sym;
|
||||||
|
@ -242,7 +242,8 @@ dumpfuncs(void)
|
|||||||
if(isblank(pl->name))
|
if(isblank(pl->name))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if(debug['S']) {
|
// -S prints code; -SS prints code and data
|
||||||
|
if(debug['S'] && (pl->name || debug['S']>1)) {
|
||||||
s = S;
|
s = S;
|
||||||
if(pl->name != N)
|
if(pl->name != N)
|
||||||
s = pl->name->sym;
|
s = pl->name->sym;
|
||||||
|
@ -47,7 +47,9 @@ Flags:
|
|||||||
-N
|
-N
|
||||||
disable optimizations
|
disable optimizations
|
||||||
-S
|
-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
|
-u
|
||||||
disallow importing packages not marked as safe
|
disallow importing packages not marked as safe
|
||||||
-V
|
-V
|
||||||
|
Loading…
Reference in New Issue
Block a user