5866
Stop requiring '--debug' in 'bootstrap run'. Now it's smart enough to turn on when needed. This creates some small chance of reading stale debug info for the wrong binary, but in practice that hasn't been an issue.
This commit is contained in:
parent
9e5e87ca37
commit
ab02bb6632
|
@ -453,6 +453,7 @@ else if (is_equal(*arg, "--trace")) {
|
|||
// Add a dummy line up top; otherwise the `browse_trace` tool currently has
|
||||
// no way to expand any lines above an error.
|
||||
Trace_file << " 0 dummy: start\n";
|
||||
// End --trace Settings
|
||||
}
|
||||
:(before "End trace Commit")
|
||||
if (Trace_file) {
|
||||
|
|
|
@ -7,12 +7,13 @@
|
|||
:(before "End Globals")
|
||||
map</*address*/uint32_t, string> Symbol_name; // used only by 'bootstrap run'
|
||||
map</*address*/uint32_t, string> Source_line; // used only by 'bootstrap run'
|
||||
:(before "End --debug Settings")
|
||||
:(before "End --trace Settings")
|
||||
load_labels();
|
||||
load_source_lines();
|
||||
:(code)
|
||||
void load_labels() {
|
||||
ifstream fin("labels");
|
||||
if (fin.fail()) return;
|
||||
fin >> std::hex;
|
||||
while (has_data(fin)) {
|
||||
uint32_t addr = 0;
|
||||
|
@ -25,6 +26,7 @@ void load_labels() {
|
|||
|
||||
void load_source_lines() {
|
||||
ifstream fin("source_lines");
|
||||
if (fin.fail()) return;
|
||||
fin >> std::hex;
|
||||
while (has_data(fin)) {
|
||||
uint32_t addr = 0;
|
||||
|
|
Loading…
Reference in New Issue