Only generate debug info when in --debug mode (or asked).

This commit is contained in:
Ben Vanik
2013-12-22 09:50:31 -08:00
parent c92142ca02
commit de6dc92663
10 changed files with 43 additions and 7 deletions

View File

@@ -230,7 +230,7 @@ json_t* Processor::OnDebugRequest(
// If we ever wanted absolute x64 addresses/etc we could
// use the x64 from the function in the symbol table.
Function* fn;
if (runtime_->frontend()->DefineFunction(info, &fn)) {
if (runtime_->frontend()->DefineFunction(info, true, &fn)) {
succeeded = false;
return json_string("Unable to resolve function");
}