fpDebug fails to compile (fpdbgdarwinclasses.pas)
Original Reporter info from Mantis: Hansaplast
-
Reporter name: Hans Luijten
Original Reporter info from Mantis: Hansaplast
- Reporter name: Hans Luijten
Description:
When rebuilding the IDE (62008) from within the IDE, I get an error ("result" undefined) in "components/fpdebug/fpdbgdarwinclasses.pas".
I have been unable to test SVN 62009, since this one fails to compile.
I'm only guessing here that this may have been a function in the past, however since "UpdateWatches64" is a procedure, so no return result would be send anyway.
This is the code that fails;
if Process.Mode=dm32 then
result := UpdateWatches32
else
result := UpdateWatches64;
Modifying it to:
if Process.Mode=dm32 then
UpdateWatches32
else
UpdateWatches64;
seems to fix this - but I honestly have no idea if this is the correct way to fix this issue.
Steps to reproduce:
svn up
make LCL_PLATFORM=cocoa CPU_TARGET=x86_64
(works)
Start IDE, and choose "tools" - "Build Lazarus with ...".
(fails)
Additional information:
Lazarus 2.1.0 r62008M
FPC 3.0.4
x86_64-darwin-cocoa (beta)
Possible fix, again not sure if this is the correct way to fix this:
Index: components/fpdebug/fpdbgdarwinclasses.pas
===================================================================
--- components/fpdebug/fpdbgdarwinclasses.pas (revision 62008)
+++ components/fpdebug/fpdbgdarwinclasses.pas (working copy)
@@ -428,9 +428,10 @@
exit;
if Process.Mode=dm32 then
- result := UpdateWatches32
+ UpdateWatches32
else
- result := UpdateWatches64;
+ UpdateWatches64;
+
FDebugStateChanged:=true;
end;
Mantis conversion info:
- Mantis ID: 36155
- OS: macOS
- OS Build: 10.14.x
- Build: 62008
- Platform: Cocoa
- Version: 2.0.5 (SVN)
- Fixed in revision: 62009 (#8b2fa08f)