DBG: do not open virtual unit twice.

git-svn-id: trunk@32724 -
This commit is contained in:
martin 2011-10-06 20:29:58 +00:00
parent 240ec1a82b
commit 5fd3a7a645
2 changed files with 4 additions and 4 deletions

View File

@ -40,7 +40,7 @@ interface
uses uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
Buttons, Menus, ComCtrls, IDEProcs, Debugger, DebuggerDlg, lclType, ActnList, MainBase, Buttons, Menus, ComCtrls, IDEProcs, Debugger, DebuggerDlg, lclType, ActnList, MainBase,
IDEImagesIntf, SourceEditor; IDEImagesIntf, SourceEditor, MainIntf;
type type
TBreakPointsDlgState = ( TBreakPointsDlgState = (
@ -801,7 +801,7 @@ begin
if CurItem=nil then exit; if CurItem=nil then exit;
CurBreakPoint:=TIDEBreakPoint(CurItem.Data); CurBreakPoint:=TIDEBreakPoint(CurItem.Data);
if CurBreakPoint.Kind = bpkSource then if CurBreakPoint.Kind = bpkSource then
MainIDE.DoJumpToSourcePosition(CurBreakPoint.Source, 0, CurBreakPoint.Line, 0, True); MainIDE.DoJumpToSourcePosition(CurBreakPoint.Source, 0, CurBreakPoint.Line, 0, [jfAddJumpPoint, jfSearchVirtualFullPath]);
end; end;
procedure TBreakPointsDlg.ShowProperties; procedure TBreakPointsDlg.ShowProperties;

View File

@ -316,11 +316,11 @@ begin
ok := false; ok := false;
if FilenameIsAbsolute(Filename) then if FilenameIsAbsolute(Filename) then
ok := MainIDEIntf.DoJumpToSourcePosition(Filename, 0, ALine, 0, ok := MainIDEIntf.DoJumpToSourcePosition(Filename, 0, ALine, 0,
[jfAddJumpPoint, jfFocusEditor, jfMarkLine, jfMapLineFromDebug] [jfAddJumpPoint, jfFocusEditor, jfMarkLine, jfMapLineFromDebug, jfSearchVirtualFullPath]
) = mrOK; ) = mrOK;
if not ok then if not ok then
MainIDEIntf.DoJumpToSourcePosition(Filename, 0, ALine, 0, MainIDEIntf.DoJumpToSourcePosition(Filename, 0, ALine, 0,
[jfDoNotExpandFilename, jfAddJumpPoint, jfFocusEditor, jfMarkLine, jfMapLineFromDebug]); [jfDoNotExpandFilename, jfAddJumpPoint, jfFocusEditor, jfMarkLine, jfMapLineFromDebug, jfSearchVirtualFullPath]);
end; end;
finally finally
DebugBoss.UnLockCommandProcessing; DebugBoss.UnLockCommandProcessing;