[Lazarus] Lazarus debugger location on Win x86/x64

Mattias Gaertner nc-gaertnma at netcologne.de
Mon Jul 30 10:51:26 CEST 2012


On Mon, 30 Jul 2012 10:38:57 +0200
Reinier Olislagers <reinierolislagers at gmail.com> wrote:

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

yes.

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

The %LazDir% is replaced by the installer. It should not be in
the installed file.

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

I don't know mingw, so I can't help there.

> 
> 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.

The macro is $(LazarusDir).


Mattias




More information about the Lazarus mailing list