Codetools [TCodeCache.LoadFile] Inconsistency found when loading debugger source file
Original Reporter info from Mantis: ludob
-
Reporter name: Ludo Brands
Original Reporter info from Mantis: ludob
- Reporter name: Ludo Brands
Description:
Breaking a program in the IDE with an assembler window active brings up an exception window complaining about diskfile inconsistency. See backtrace in additional information. Clicking ignore will continue the debugger correctly but the exception is raised again for every step in the source or when hovering over a variable.
The debugger passes the filename with / as dir separator and in TCTDirectoryCachePool.GetCache AppendPathDelim(TrimFilename(Directory)) adds a \ to the directory resulting in a dir terminated with /\
Additional information:
Backtrace.
ERROR: Exception occured in TGDBMIDebuggerCommandDisassembe.DoExecute Exception
Msg="[TCodeCache.LoadFile] Inconsistency found: AFilename="C:/lazarus/fpc/svn/rt
l/inc/variants.pp" FindDiskFilename="C:/lazarus/fpc/svn/rtl/inc/\variants.pp" Co
mpareFilenames=1" Addr=0072C29D Dbg.State=Pause
$0072C29D FINDDISKFILENAMEINCONSISTENT, line 583 of codecache.pas
$0072C00C TCODECACHE__LOADFILE, line 598 of codecache.pas
$0071F54A TCODETOOLMANAGER__LOADFILE, line 1120 of codetoolmanager.pas
$00BDBA32 TASSEMBLERDLG__GETSOURCECODELINE, line 935 of C:/lazarus/debugger/
assemblerdlg.pp
$00BDC258 TASSEMBLERDLG__UPDATELINEDATAEX, line 1121 of C:/lazarus/debugger/
assemblerdlg.pp
$00BDBB32 TASSEMBLERDLG__UPDATELINEDATA, line 948 of C:/lazarus/debugger/ass
emblerdlg.pp
$00BDA940 TASSEMBLERDLG__UPDATEVIEW, line 673 of C:/lazarus/debugger/assembl
erdlg.pp
$00BD955A TASSEMBLERDLG__DISASSEMBLERCHANGED, line 488 of C:/lazarus/debugge
r/assemblerdlg.pp
$00839FF5 TIDEDISASSEMBLER__DOCHANGED, line 10279 of C:/lazarus/debugger/deb
ugger.pp
$00839A85 TBASEDISASSEMBLER__CHANGED, line 10150 of C:/lazarus/debugger/debu
gger.pp
$00839C09 TBASEDISASSEMBLER__SETBASEADDR, line 10212 of C:/lazarus/debugger/
debugger.pp
$00839F6F TIDEDISASSEMBLER__DOCHANGED, line 10271 of C:/lazarus/debugger/deb
ugger.pp
$00839A85 TBASEDISASSEMBLER__CHANGED, line 10150 of C:/lazarus/debugger/debu
gger.pp
$00839BCC TBASEDISASSEMBLER__SETCOUNTAFTER, line 10204 of C:/lazarus/debugge
r/debugger.pp
$00839F5B TIDEDISASSEMBLER__DOCHANGED, line 10270 of C:/lazarus/debugger/deb
ugger.pp
$00839A85 TBASEDISASSEMBLER__CHANGED, line 10150 of C:/lazarus/debugger/debu
gger.pp
$00839B9C TBASEDISASSEMBLER__SETCOUNTBEFORE, line 10196 of C:/lazarus/debugg
er/debugger.pp
Mantis conversion info:
- Mantis ID: 20715
- OS: windows
- OS Build: XP
- Build: 33539
- Platform: i386
- Version: 0.9.31 (SVN)
- Fixed in version: 0.9.31 (SVN)
- Fixed in revision: 33649 (#55e992a6)
- Target version: 0.99.0