[fpc-pascal] GDB issues with the latest unstable FPC...

2007-03-02 Thread m utku
Hi all, I am using an unstable fpc version(2.1.1 -- snapshot from last week). While debugging my specific project, GDB(6.4 - Debian Sarge) seems to be wrong about the function locations so I cannot use breakpoints. I'd guess that this is a fpc bug about generated debug symbols. Is this is a

[fpc-pascal] Equivalent of Delphi map files...

2007-03-02 Thread m utku
Hello again :), I just forgot to ask; Delphi has an option to generate a so called map file that contains the function addresses matched with the function names when an executable compiled. What would be the equivalent FPC functionality for this? Regards, Utku.

Re: [fpc-pascal] Equivalent of Delphi map files...

2007-03-02 Thread Jonas Maebe
On 02 Mar 2007, at 09:03, m utku wrote: Hello again :), I just forgot to ask; Delphi has an option to generate a so called map file that contains the function addresses matched with the function names when an executable compiled. What would be the equivalent FPC functionality for this?

Re: [fpc-pascal] Equivalent of Delphi map files...

2007-03-02 Thread Vincent Snijders
Jonas Maebe schreef: On 02 Mar 2007, at 09:03, m utku wrote: Hello again :), I just forgot to ask; Delphi has an option to generate a so called map file that contains the function addresses matched with the function names when an executable compiled. What would be the equivalent FPC

Re: [fpc-pascal] Equivalent of Delphi map files...

2007-03-02 Thread Vinzent Hoefler
On Friday 02 March 2007 08:19, Jonas Maebe wrote: On 02 Mar 2007, at 09:03, m utku wrote: Hello again :), I just forgot to ask; Delphi has an option to generate a so called map file that contains the function addresses matched with the function names when an executable compiled. What

Re: [fpc-pascal] Equivalent of Delphi map files...

2007-03-02 Thread Jonas Maebe
On 02 Mar 2007, at 09:26, Vincent Snijders wrote: Jonas Maebe schreef: On 02 Mar 2007, at 09:03, m utku wrote: Hello again :), I just forgot to ask; Delphi has an option to generate a so called map file that contains the function addresses matched with the function names when an

Re: [fpc-pascal] Equivalent of Delphi map files...

2007-03-02 Thread Jonas Maebe
On 02 Mar 2007, at 09:29, Vinzent Hoefler wrote: man ld - search for map - there is a --print-map option - tell FPC to pass this option to ld using FPC's -k option: -k--print-map Hmm. And then how to redirect the linker's standard output to a file named the same as a the source? You have

Re: [fpc-pascal] Equivalent of Delphi map files...

2007-03-02 Thread Jonas Maebe
On 02 Mar 2007, at 09:32, Jonas Maebe wrote: -k--print-map Hmm. And then how to redirect the linker's standard output to a file named the same as a the source? You have to manually redirect the output to where you want it to got. Since linking happens on a per-program/library basis and

Re: [fpc-pascal] Equivalent of Delphi map files...

2007-03-02 Thread Vincent Snijders
Jonas Maebe schreef: On 02 Mar 2007, at 09:26, Vincent Snijders wrote: Jonas Maebe schreef: On 02 Mar 2007, at 09:03, m utku wrote: Hello again :), I just forgot to ask; Delphi has an option to generate a so called map file that contains the function addresses matched with the function

[fpc-pascal] Re: Equivalent of Delphi map files...

2007-03-02 Thread m utku
Hmm. And then how to redirect the linker's standard output to a file named the same as a the source? Vinzent, passing this: -k-Map mapfile to fpc does the trick. Thanks to Jonas... Regards, Utku. ___ fpc-pascal maillist -

Re: [fpc-pascal] GDB issues with the latest unstable FPC...

2007-03-02 Thread Jonas Maebe
On 02 Mar 2007, at 08:56, m utku wrote: I am using an unstable fpc version(2.1.1 -- snapshot from last week). While debugging my specific project, GDB(6.4 - Debian Sarge) seems to be wrong about the function locations so I cannot use breakpoints. Do line numbers work? I'd guess that

[fpc-pascal] Re: GDB issues with the latest unstable FPC...

2007-03-02 Thread m utku
Jonas Maebe [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: On 02 Mar 2007, at 08:56, m utku wrote: I am using an unstable fpc version(2.1.1 -- snapshot from last week). While debugging my specific project, GDB(6.4 - Debian Sarge) seems to be wrong about the function locations so I

Re: [fpc-pascal] Re: GDB issues with the latest unstable FPC...

2007-03-02 Thread Jonas Maebe
On 02 Mar 2007, at 10:36, m utku wrote: Do line numbers work? Yes, indeed I can use dump_stack without problems but still no luck with breakpoints. I can always reproduce this case: (1) declare a test function like: procedure foobar; begin // some code to avoid smart link elimination,

[fpc-pascal] Re: Re: GDB issues with the latest unstable FPC...

2007-03-02 Thread m utku
Jonas Maebe [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: How do you try to set the breakpoint? You can either use: a) b FOOBAR b) b sourcefile.pas:linenr I guess you are using a) (of course that should work as well) Another interesting thing is that I can set this with b foobar not b

Re: [fpc-pascal] arm big endian questions and info

2007-03-02 Thread Henry Vermaak
o.k. this is where i've come to with my struggle with arm big endian (without fpu): 2.0.4: works well, except with floating point (hangs on my board). can't compile the rtl with softfloat support. 2.0.5: just tried latest rev. doesn't work well, writeln('hello world') spits out rubbish after