mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-05 16:56:04 +02:00
Fix for bug 73801: Function breakpoints set from C View aren't shown in editor.
This commit is contained in:
parent
af6a913751
commit
5db467bcdf
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2004-11-11 Mikhail Khodjaiants
|
||||||
|
Fix for bug 73801: Function breakpoints set from C View aren't shown in editor.
|
||||||
|
* ToggleBreakpointAdapter.java
|
||||||
|
|
||||||
2004-11-10 Mikhail Khodjaiants
|
2004-11-10 Mikhail Khodjaiants
|
||||||
Fix for bug 77437: Disassembly blocks with no associated source code has PC pointer on wrong line.
|
Fix for bug 77437: Disassembly blocks with no associated source code has PC pointer on wrong line.
|
||||||
* DisassemblyEditorInput.java
|
* DisassemblyEditorInput.java
|
||||||
|
|
|
@ -179,6 +179,10 @@ public class ToggleBreakpointAdapter implements IToggleBreakpointsTarget {
|
||||||
if ( sourceRange != null ) {
|
if ( sourceRange != null ) {
|
||||||
charStart = sourceRange.getStartPos();
|
charStart = sourceRange.getStartPos();
|
||||||
charEnd = charStart + sourceRange.getLength();
|
charEnd = charStart + sourceRange.getLength();
|
||||||
|
if ( charEnd <= 0 ) {
|
||||||
|
charStart = -1;
|
||||||
|
charEnd = -1;
|
||||||
|
}
|
||||||
lineNumber = sourceRange.getStartLine();
|
lineNumber = sourceRange.getStartLine();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue