about summary refs log tree commit diff stats
path: root/subx/036global_variables.cc
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-10-05 13:31:53 -0700
committerKartik Agaram <vc@akkartik.com>2018-10-05 13:33:14 -0700
commit15ae0717ba51649dd8042cd5ef0be3bc296b8a26 (patch)
treec26ea2b0ba15152e0746bfbb7c5c11a9a0027c20 /subx/036global_variables.cc
parent9f1d0ef3fb2044f7f9cdb51f72cc9822b023eea0 (diff)
downloadmu-15ae0717ba51649dd8042cd5ef0be3bc296b8a26.tar.gz
4664 - subx: reflect test failures in exit status
Diffstat (limited to 'subx/036global_variables.cc')
-rw-r--r--subx/036global_variables.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/subx/036global_variables.cc b/subx/036global_variables.cc
index b29207bf..e7c139ae 100644
--- a/subx/036global_variables.cc
+++ b/subx/036global_variables.cc
@@ -47,6 +47,8 @@ void compute_addresses_for_global_variables(const segment& s, map<string, uint32
         if (trace_contains_errors()) return;
         if (j > 0)
           raise << "'" << to_string(inst) << "': global variable names can only be the first word in a line.\n" << end();
+        if (Dump_map)
+          cerr << "0x" << HEXWORD << current_address << ' ' << variable << '\n';
         put(address, variable, current_address);
         trace(99, "transform") << "global variable '" << variable << "' is at address 0x" << HEXWORD << current_address << end();
         // no modifying current_address; global variable definitions won't be in the final binary