Cleanup, no functional change.
This commit is contained in:
@@ -693,10 +693,12 @@ DwarfImageDebugInfo::GetStatement(FunctionDebugInfo* _function,
|
|||||||
int32 statementLine = -1;
|
int32 statementLine = -1;
|
||||||
int32 statementColumn = -1;
|
int32 statementColumn = -1;
|
||||||
while (program.GetNextRow(state)) {
|
while (program.GetNextRow(state)) {
|
||||||
bool isOurFile = state.file == fileIndex;
|
// skip statements of other files
|
||||||
|
if (state.file != fileIndex)
|
||||||
|
continue;
|
||||||
|
|
||||||
if (statementAddress != 0
|
if (statementAddress != 0
|
||||||
&& (!isOurFile || state.isStatement || state.isSequenceEnd)) {
|
&& (state.isStatement || state.isSequenceEnd)) {
|
||||||
target_addr_t endAddress = state.address;
|
target_addr_t endAddress = state.address;
|
||||||
if (address >= statementAddress && address < endAddress) {
|
if (address >= statementAddress && address < endAddress) {
|
||||||
ContiguousStatement* statement = new(std::nothrow)
|
ContiguousStatement* statement = new(std::nothrow)
|
||||||
@@ -714,10 +716,6 @@ DwarfImageDebugInfo::GetStatement(FunctionDebugInfo* _function,
|
|||||||
statementAddress = 0;
|
statementAddress = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// skip statements of other files
|
|
||||||
if (!isOurFile)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
if (state.isStatement) {
|
if (state.isStatement) {
|
||||||
statementAddress = state.address;
|
statementAddress = state.address;
|
||||||
statementLine = state.line - 1;
|
statementLine = state.line - 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user