Commit b185de82 authored by Russ Cox's avatar Russ Cox

cmd/gc: limit data disassembly to -SS

This makes -S useful again.

R=ken2
CC=golang-dev
https://golang.org/cl/6302054
parent 2a9410c1
......@@ -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;
......
......@@ -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;
......
......@@ -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;
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment