Re: [Lazarus] Stepping into the LCL with fpdebug

2024-04-22 Thread Luca Olivetti via lazarus
El 22/4/24 a les 11:47, Martin Frb via lazarus ha escrit: On 22/04/2024 11:13, Luca Olivetti via lazarus wrote: That doesn't answer my question: then how is it possible that I can step into the lcl with gdb and -gl even if I don't specify "-gl"  in additions and overrides? Because your LCL

Re: [Lazarus] Stepping into the LCL with fpdebug

2024-04-22 Thread Martin Frb via lazarus
On 22/04/2024 11:13, Luca Olivetti via lazarus wrote: That doesn't answer my question: then how is it possible that I can step into the lcl with gdb and -gl even if I don't specify "-gl"  in additions and overrides? Because your LCL is probably build with STABS. And gdb can read stabs, but

Re: [Lazarus] Stepping into the LCL with fpdebug

2024-04-22 Thread Luca Olivetti via lazarus
El 22/4/24 a les 11:29, Luca Olivetti via lazarus ha escrit: That doesn't answer my question: then how is it possible that I can step into the lcl with gdb and -gl even if I don't specify "-gl"  in additions and overrides? Adding "-gw3" to the options in "Tools->Configure build lazarus"

Re: [Lazarus] Stepping into the LCL with fpdebug

2024-04-22 Thread Luca Olivetti via lazarus
El 22/4/24 a les 11:31, Mattias Gaertner via lazarus ha escrit: On 22.04.24 10:37, Luca Olivetti via lazarus wrote: [...] First of all, the fpc release units have no debug information, so normally there is nothing to pick. I have no problem with rtl/fcl units, as I explained, I compile

Re: [Lazarus] Stepping into the LCL with fpdebug

2024-04-22 Thread Mattias Gaertner via lazarus
On 22.04.24 10:37, Luca Olivetti via lazarus wrote: [...] First of all, the fpc release units have no debug information, so normally there is nothing to pick. I have no problem with rtl/fcl units, as I explained, I compile them with debug info (either -gl or -gw3) and I can step into

Re: [Lazarus] Stepping into the LCL with fpdebug

2024-04-22 Thread Luca Olivetti via lazarus
El 22/4/24 a les 11:22, Luca Olivetti via lazarus ha escrit: El 22/4/24 a les 11:13, Luca Olivetti via lazarus ha escrit: El 22/4/24 a les 11:02, Martin Frb via lazarus ha escrit: On 22/04/2024 10:37, Luca Olivetti via lazarus wrote: But if they have it would be super useful to have a

Re: [Lazarus] Stepping into the LCL with fpdebug

2024-04-22 Thread Luca Olivetti via lazarus
El 22/4/24 a les 11:13, Luca Olivetti via lazarus ha escrit: El 22/4/24 a les 11:02, Martin Frb via lazarus ha escrit: On 22/04/2024 10:37, Luca Olivetti via lazarus wrote: But if they have it would be super useful to have a setting "use the debug setting of the system unit", but there is

Re: [Lazarus] Stepping into the LCL with fpdebug

2024-04-22 Thread Luca Olivetti via lazarus
El 22/4/24 a les 11:02, Martin Frb via lazarus ha escrit: On 22/04/2024 10:37, Luca Olivetti via lazarus wrote: But if they have it would be super useful to have a setting "use the debug setting of the system unit", but there is not. You can add the -gw3 flag depending on build mode:

Re: [Lazarus] Stepping into the LCL with fpdebug

2024-04-22 Thread Martin Frb via lazarus
On 22/04/2024 10:37, Luca Olivetti via lazarus wrote: But if they have it would be super useful to have a setting "use the debug setting of the system unit", but there is not. You can add the -gw3 flag depending on build mode:

Re: [Lazarus] Stepping into the LCL with fpdebug

2024-04-22 Thread Luca Olivetti via lazarus
El 22/4/24 a les 10:10, Mattias Gaertner via lazarus ha escrit: On 22.04.24 09:54, Luca Olivetti via lazarus wrote: [...] make clean install OPT=-gw3 INSTALL_PREFIX=d:\pp-fpdebug (different path so I can keep the two versions) and I can step inside the rtl, just not inside the LCL. Since

Re: [Lazarus] Stepping into the LCL with fpdebug

2024-04-22 Thread Mattias Gaertner via lazarus
On 22.04.24 09:54, Luca Olivetti via lazarus wrote: [...] make clean install OPT=-gw3 INSTALL_PREFIX=d:\pp-fpdebug (different path so I can keep the two versions) and I can step inside the rtl, just not inside the LCL. Since the packages are automatically built when I build the project, I

[Lazarus] Stepping into the LCL with fpdebug

2024-04-22 Thread Luca Olivetti via lazarus
Hello, up until now I used gdb with -gl and, if in the project options I selected -gl, I could step inside the LCL. For the rtl/fcl I compile fpc this way make clean install OPT=-g INSTALL_PREFIX=d:\pp-debug and I specify the resulting compiler in Lazarus' tools->options. Now I'm switching