Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2012-12

debugging and "strip --strip-all ./lazarus* ./startlazarus"

7 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

John Landmesser

Hi,

Info:
I use the svn version of lazarus, compile lazarus myself on a Debian Sid linux and windows XP.

Question:
do i loose any debugging possibilities of my own apps, if i strip lazarus as shown above?

"man strip" tells me something about debugging symbols, but i think that does not concern my own appliaction.

I gain half a GB if i strip ./Lazarus ./lazarus.old and ./startlazarus.

I'll google now for command line parameters to strip these symbols, i know that these exists!

Reply by email

Sven Barth
to John Landmesser
John Landmesser wrote 17 lines
Hi, Info: I use the svn version of lazarus, compile lazarus myself on a Debian Sid linux and windows XP. Question: do i loose any debugging possibilities of my own apps, if i strip lazarus as shown above? "man strip" tells me something about debugging symbols, but i think that does not concern my own appliaction. I gain half a GB if i strip ./Lazarus ./lazarus.old and ./startlazarus. I'll google now for command line parameters to strip these symbols, i know that these exists!

Why don't you just compile lazarus with "-Xs"? This should tell the compiler to remove all debug information from the executables, but still generates the debug information for the LCL.

Regards,
Sven

Reply by email

Mattias Gaertner
to John Landmesser: Info: I use the svn version of lazarus, compile lazarus myself on a Debian Sid linux and…
Show quoted text 9 lines
Hi, Info: I use the svn version of lazarus, compile lazarus myself on a Debian Sid linux and windows XP. Question: do i loose any debugging possibilities of my own apps, if i strip lazarus as shown above?

No.
Only if you strip your own applications.

Show quoted text 7 lines
"man strip" tells me something about debugging symbols, but i think that does not concern my own appliaction. I gain half a GB if i strip ./Lazarus ./lazarus.old and ./startlazarus. I'll google now for command line parameters to strip these symbols, i know that these exists!

Mattias

Reply by email

Sven Barth
to Vincent Snijders
Vincent Snijders wrote 9 lines
2012/12/27 Sven Barth : > > > Why don't you just compile lazarus with "-Xs"? This should tell the compiler > to remove all debug information from the executables, but still generates > the debug information for the LCL. > IIRC. Lazarus makefiles add the -gl option, so -Xs will be ignored.

Then add -Xg instead and remove the resulting lazarus.dbg, startlazarus.dbg and lazbuild.dbg files...

Regards,
Sven

Reply by email

Sven Barth
to leledumbo
leledumbo wrote
Or add -g- as well (it will override -gl)

But then it will disable the generation of debug information for the LCL (or doesn't it?) which does not seem like something the user wants.

Regards,
Sven

Reply by email