Debugger: Always include disassembly/frame dump in reports.
This commit is contained in:
@@ -466,8 +466,7 @@ DebugReportGenerator::_DumpDebuggedThreadInfo(BString& _output,
|
||||
sizeof(functionName)));
|
||||
|
||||
_output << data;
|
||||
if (frame->CountParameters() == 0
|
||||
&& frame->CountLocalVariables() == 0) {
|
||||
|
||||
// only dump the topmost frame
|
||||
if (i == 0) {
|
||||
locker.Unlock();
|
||||
@@ -477,8 +476,9 @@ DebugReportGenerator::_DumpDebuggedThreadInfo(BString& _output,
|
||||
->StackGrowthDirection());
|
||||
locker.Lock();
|
||||
}
|
||||
|
||||
if (frame->CountParameters() == 0 && frame->CountLocalVariables() == 0)
|
||||
continue;
|
||||
}
|
||||
|
||||
_output << "\t\t\tVariables:\n";
|
||||
status_t result = fNodeManager->SetStackFrame(thread, frame);
|
||||
@@ -538,6 +538,10 @@ DebugReportGenerator::_DumpFunctionDisassembly(BString& _output,
|
||||
if (code == NULL) {
|
||||
switch (function->SourceCodeState()) {
|
||||
case FUNCTION_SOURCE_NOT_LOADED:
|
||||
case FUNCTION_SOURCE_LOADED:
|
||||
// FUNCTION_SOURCE_LOADED is included since, if we entered
|
||||
// here, it implies that the high level source for the
|
||||
// function has been loaded, but the disassembly has not.
|
||||
function->AddListener(this);
|
||||
fSourceWaitingFunction = function;
|
||||
fListener->FunctionSourceCodeRequested(instance, true);
|
||||
|
||||
Reference in New Issue
Block a user