[Lazarus] Lazarus debugger location on Win x86/x64

Reinier Olislagers reinierolislagers at gmail.com
Mon Jul 30 10:38:57 CEST 2012


Hi list,

http://bugs.freepascal.org/view.php?id=22086
indicates macros are supported in the debugger path.

The location for gdb.exe in EnvironmentOptions.xml is set by default to
<DebuggerFilename Value="%LazDir%\mingw\bin\gdb.exe">

Would it make sense to create this directory structure
%LazDir%\mingw\bin\$(TargetCPU)\
or even
%LazDir%\mingw\bin\$(TargetCPU)-$(TargetOS)

This way, we could change the debugger depending on project target,
which helps if you have e.g. both x86 and x64 LCL installed:
<DebuggerFilename Value="%LazDir%\mingw\bin\%TargetCPU%-%TargetOS%\gdb.exe">

Only thing is: I don't know if TargetCPU and TargetOS are actually
supported: I tried looking for LazDir to see if it is an IDE macro
(which it presumably is??) in
http://wiki.lazarus.freepascal.org/IDE_Macros_in_paths_and_filenames
and didn't find anything.

Regards,
Reinier




More information about the Lazarus mailing list