[fpc-pascal] text looks like currupted/unreadable

2014-07-18 Thread marnev
Hi there,

when i build my free pascal program using DOXBox by text looks like
currupted/unreadable so could anyone help me on where i am doing wrong?

Thanks,
vaibhav



--
View this message in context: 
http://free-pascal-general.1045716.n5.nabble.com/text-looks-like-currupted-unreadable-tp5719764.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


[fpc-pascal] how to activate debug info

2014-07-18 Thread Giuliano Colla

Hi fpc team.
When I need to understand how some code works, I frequently use the 
debugger, and single-step.
But when debugging Lazarus applications, I can single-step through user 
code and Lazarus code only, while fpc code is skipped.
I presume that this is happening because my fpc binary is stripped of 
debug information.
In the zillion of compiler options, which are the best ones to provide a 
non-stripped fpc binary?

My environment is Linux, fpc 2.7.1 from svn.

Thanks for any hint

Giuliano


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] how to activate debug info

2014-07-18 Thread Sven Barth
Am 18.07.2014 14:09 schrieb "Giuliano Colla" :
>
> Hi fpc team.
> When I need to understand how some code works, I frequently use the
debugger, and single-step.
> But when debugging Lazarus applications, I can single-step through user
code and Lazarus code only, while fpc code is skipped.
> I presume that this is happening because my fpc binary is stripped of
debug information.
> In the zillion of compiler options, which are the best ones to provide a
non-stripped fpc binary?
> My environment is Linux, fpc 2.7.1 from svn.

Generation of debug information is disabled by default for RTL, FCL and
packages units (those distributed with FPC). To enable it you must build
FPC like this:

make OPT=-gl

Of course you can add any other options you need for building.

Regards,
Sven
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] how to activate debug info

2014-07-18 Thread Giuliano Colla


Il 18/07/2014 14:30, Sven Barth ha scritto:


Am 18.07.2014 14:09 schrieb "Giuliano Colla" 
mailto:giuliano.co...@fastwebnet.it>>:

>
> Hi fpc team.
> When I need to understand how some code works, I frequently use the 
debugger, and single-step.
> But when debugging Lazarus applications, I can single-step through 
user code and Lazarus code only, while fpc code is skipped.
> I presume that this is happening because my fpc binary is stripped 
of debug information.
> In the zillion of compiler options, which are the best ones to 
provide a non-stripped fpc binary?

> My environment is Linux, fpc 2.7.1 from svn.

Generation of debug information is disabled by default for RTL, FCL 
and packages units (those distributed with FPC). To enable it you must 
build FPC like this:


make OPT=-gl

Of course you can add any other options you need for building.

Regards,
Sven




Thanks a lot,

Giuliano

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal