Making debug info toggles a flag to allow finer control.

This commit is contained in:
Ben Vanik
2014-01-13 21:12:10 -08:00
parent dfaa0e2d08
commit faa75c9407
13 changed files with 54 additions and 24 deletions

View File

@@ -662,7 +662,8 @@ json_t* Processor::DumpFunction(uint64_t address, bool& succeeded) {
// 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, true, &fn)) {
if (runtime_->frontend()->DefineFunction(
info, DEBUG_INFO_ALL_DISASM | DEBUG_INFO_JSON, &fn)) {
succeeded = false;
return json_string("Unable to resolve function");
}