* Fixed spurious IP and breakpoint markers in disassembled code.
* Automatic whitespace cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31686 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
|
||||
|
||||
#include "SourceView.h"
|
||||
|
||||
#include <algorithm>
|
||||
@@ -681,11 +682,15 @@ SourceView::MarkerView::_UpdateIPMarkers()
|
||||
}
|
||||
Reference<Statement> statementReference(statement, true);
|
||||
|
||||
uint32 line = statement->StartSourceLocation().Line();
|
||||
if ((functionInstance->GetSourceCode() != fSourceCode
|
||||
&& functionInstance->GetFunction()->SourceFile()
|
||||
!= sourceFile)
|
||||
|| line < 0 || line >= (uint32)LineCount()) {
|
||||
int32 line = statement->StartSourceLocation().Line();
|
||||
if (line < 0 || line >= LineCount())
|
||||
continue;
|
||||
|
||||
if (sourceFile != NULL) {
|
||||
if (functionInstance->GetFunction()->SourceFile() != sourceFile)
|
||||
continue;
|
||||
} else {
|
||||
if (functionInstance->GetSourceCode() != fSourceCode)
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -740,11 +745,15 @@ SourceView::MarkerView::_UpdateBreakpointMarkers()
|
||||
}
|
||||
Reference<Statement> statementReference(statement, true);
|
||||
|
||||
uint32 line = statement->StartSourceLocation().Line();
|
||||
if ((functionInstance->GetSourceCode() != fSourceCode
|
||||
&& functionInstance->GetFunction()->SourceFile()
|
||||
!= sourceFile)
|
||||
|| line < 0 || line >= (uint32)LineCount()) {
|
||||
int32 line = statement->StartSourceLocation().Line();
|
||||
if (line < 0 || line >= LineCount())
|
||||
continue;
|
||||
|
||||
if (sourceFile != NULL) {
|
||||
if (functionInstance->GetFunction()->SourceFile() != sourceFile)
|
||||
continue;
|
||||
} else {
|
||||
if (functionInstance->GetSourceCode() != fSourceCode)
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user