[Patch] Set up windows installer to allow multiple debuggers using $(TargetCPU)-$(TargetOS)
Original Reporter info from Mantis: BigChimp
-
Reporter name: Reinier Olislagers
Original Reporter info from Mantis: BigChimp
- Reporter name: Reinier Olislagers
Description:
Currently, the Windows installer installs the debugger into
&LtPos;LazDir>\mingw\bin\gdb.exe
The default environmentoptions.xml states:
&LtPos;DebuggerFilename Value="%LazDir%\mingw\bin\gdb.exe">
If you have a 32 bit IDE with 64 bit LCL compiled (or another like wince-arm), you will run the 32 bit gdb for the other LCL.
A solution is to use macros
-
change the 32 bit installer to put 32 bit gdb.exe in
&LtPos;LazDir>\mingw\bin\x86-win32\gdb.exe
and the 64 bit installer should put gdb.exe in
&LtPos;LazDir>\mingw\bin\x86_64-win64\gdb.exe -
change the default environmentoptions.xml to
&LtPos;DebuggerFilename Value="%LazDir%\mingw\bin$(TargetCPU)-$(TargetOS)\gdb.exe"> -
devise a migration strategy
Additional information:
AFAIU, step 1 requires modifying the source tree, which is not in the regular Lazars svn tree, and which I haven't done.
Please find attached a patch (debuggermacro.diff) for step 2.
- Migration from previous versions:
- I added the previous debugger file to the RemovedFiles32.iss and RemovedFiles64.iss (patch debuggerremovefiles.diff)
- presumably a patch to migrate existing environmentoptions.xml could be handy.. or a message in the release notes that people will need to change their setting
Alternatively, no migration strategy could be done for existing installs but that could lead to problems with existing obsolete gdb.exes
Mantis conversion info:
- Mantis ID: 22533
- OS: Windows
- OS Build: Vista
- Build: r38091
- Platform: x64
- Version: 1.1 (SVN)
- Fixed in version: 1.1 (SVN)
- Fixed in revision: 39357 (#0f36e8f0)
- Target version: 1.2.0
- LazTarget: 1.2