[fpc-pascal] Debugging WinCE apps

2008-06-02 Thread Felipe Monteiro de Carvalho
Hello, How is it possible to generate backtraces from WinCE apps? I downloaded gdb from the Windows CE Interface wiki page and run it via ActiveSync with: gdb --tui "WinCE Example_Error\wince_example_error.exe" But it cannot find any debug information: (gdb) break fpc_raiseexception No symbol

Re: [fpc-pascal] FPC_ARMEL system calls

2008-06-02 Thread Luca Olivetti
En/na Luca Olivetti ha escrit: I guess I'll stick to i386 for a while ;-) I really think I should. I created a full cross compiler just like Florian :-D I compiled a simple hello world and it doesn't run (like the compiler): sbox-CHINOOK_ARMEL: ~] > fpc-svn/hello Error: unimplemented syscal

Re: [fpc-pascal] FPC_ARMEL system calls

2008-06-02 Thread Luca Olivetti
En/na Luca Olivetti ha escrit: En/na Henry Vermaak ha escrit: i think what florian means is that you have to use an eabi ppcarm as a starting compiler if you'd like to compile fpc in your scratchbox. so you'll have to create one by cross compiling from i386 or whatever arch you're using. so y

Re: [fpc-pascal] FPC_ARMEL system calls

2008-06-02 Thread Henry Vermaak
2008/6/2 Luca Olivetti <[EMAIL PROTECTED]>: > > Yeah, I thought that I could cross-compile from arm to armel, but now I'm > currently building the gnu crossbinutils to do that from (the codesourcery > ones I have give a linker error), but I suspect I'll end up with the same > linker error down the

Re: [fpc-pascal] FPC_ARMEL system calls

2008-06-02 Thread Luca Olivetti
En/na Henry Vermaak ha escrit: i think what florian means is that you have to use an eabi ppcarm as a starting compiler if you'd like to compile fpc in your scratchbox. so you'll have to create one by cross compiling from i386 or whatever arch you're using. so you'll have to make compiler_cycl

Re: [fpc-pascal] FPC_ARMEL system calls

2008-06-02 Thread Henry Vermaak
2008/6/2 Luca Olivetti <[EMAIL PROTECTED]>: > En/na Luca Olivetti ha escrit: >> >> En/na Florian Klaempfl ha escrit: >> > How did you get the native start compiler? http://freepascal.org/down/arm/linux.var (it's 2.2.0) >>> >>> Well, this is the point :) This is not an armel compiler.

Re: [fpc-pascal] FPC_ARMEL system calls

2008-06-02 Thread Luca Olivetti
En/na Luca Olivetti ha escrit: En/na Florian Klaempfl ha escrit: How did you get the native start compiler? http://freepascal.org/down/arm/linux.var (it's 2.2.0) Well, this is the point :) This is not an armel compiler. You need to cross compile one first. Ok, I'll try. Thank you. I ha

Re: [fpc-pascal] FPC_ARMEL system calls

2008-06-02 Thread Luca Olivetti
En/na Florian Klaempfl ha escrit: How did you get the native start compiler? http://freepascal.org/down/arm/linux.var (it's 2.2.0) Well, this is the point :) This is not an armel compiler. You need to cross compile one first. Ok, I'll try. Thank you. Bye -- Luca

Re: [fpc-pascal] FPC_ARMEL system calls

2008-06-02 Thread Florian Klaempfl
Luca Olivetti schrieb: En/na Florian Klaempfl ha escrit: make clean all OS_TARGET=linux CPU_TARGET=arm BINUTILSPREFIX=armel-linux- OPT=-dFPC_ARMEL FPC=fpc works fine for me, at least it compiles ;) Yeah, but that's not native :-/ How did you get the native start compiler? http://freepasc

Re: [fpc-pascal] FPC_ARMEL system calls

2008-06-02 Thread Luca Olivetti
En/na Florian Klaempfl ha escrit: make clean all OS_TARGET=linux CPU_TARGET=arm BINUTILSPREFIX=armel-linux- OPT=-dFPC_ARMEL FPC=fpc works fine for me, at least it compiles ;) Yeah, but that's not native :-/ How did you get the native start compiler? http://freepascal.org/down/arm/linux.va

Re: [fpc-pascal] FPC_ARMEL system calls

2008-06-02 Thread Florian Klaempfl
Luca Olivetti schrieb: En/na Florian Klaempfl ha escrit: Luca Olivetti schrieb: En/na Luca Olivetti ha escrit: En/na Florian Klaempfl ha escrit: This is what needs to be fixed the other two options might be a workaround not usable. You use trunk I suppose? Yes Just updated. make clean a

Re: [fpc-pascal] FPC_ARMEL system calls

2008-06-02 Thread Luca Olivetti
En/na Luca Olivetti ha escrit: En/na Florian Klaempfl ha escrit: Luca Olivetti schrieb: En/na Luca Olivetti ha escrit: En/na Florian Klaempfl ha escrit: This is what needs to be fixed the other two options might be a workaround not usable. You use trunk I suppose? Yes Just updated. make

Re: [fpc-pascal] FPC_ARMEL system calls

2008-06-02 Thread Luca Olivetti
En/na Florian Klaempfl ha escrit: Luca Olivetti schrieb: En/na Luca Olivetti ha escrit: En/na Florian Klaempfl ha escrit: This is what needs to be fixed the other two options might be a workaround not usable. You use trunk I suppose? Yes Just updated. make clean all OS_TARGET=linux CPU_T

Re: [fpc-pascal] FPC_ARMEL system calls

2008-06-02 Thread Florian Klaempfl
Luca Olivetti schrieb: En/na Luca Olivetti ha escrit: En/na Florian Klaempfl ha escrit: This is what needs to be fixed the other two options might be a workaround not usable. You use trunk I suppose? Yes Just updated. make clean all OS_TARGET=linux CPU_TARGET=arm BINUTILSPREFIX=armel-lin

Re: [fpc-pascal] FPC_ARMEL system calls

2008-06-02 Thread Luca Olivetti
En/na Luca Olivetti ha escrit: En/na Florian Klaempfl ha escrit: This is what needs to be fixed the other two options might be a workaround not usable. You use trunk I suppose? Yes Just updated. Here are the results: a) under scratchbox (qemu emulated arm) (http://maemo.org/development/sdk

Re: [fpc-pascal] FPC_ARMEL system calls

2008-06-02 Thread Luca Olivetti
En/na Florian Klaempfl ha escrit: This is what needs to be fixed the other two options might be a workaround not usable. You use trunk I suppose? Yes Bye -- Luca ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org

Re: [fpc-pascal] FPC_ARMEL system calls

2008-06-02 Thread Florian Klaempfl
Luca Olivetti schrieb: En/na Florian Klaempfl ha escrit: Luca Olivetti schrieb: Florian Klaempfl escribió: But you used OPT=-dFPC_ARMEL? Yes, I used OPT='-dFPC_ARMEL -dFPC_ABI_EABI -CfSOFT' And then you got the errors about floats? No, I get that if I omit the -CfSOFT I simply tried al

Re: [fpc-pascal] FPC_ARMEL system calls

2008-06-02 Thread Luca Olivetti
En/na Florian Klaempfl ha escrit: Luca Olivetti schrieb: Florian Klaempfl escribió: But you used OPT=-dFPC_ARMEL? Yes, I used OPT='-dFPC_ARMEL -dFPC_ABI_EABI -CfSOFT' And then you got the errors about floats? No, I get that if I omit the -CfSOFT I simply tried all the permutations ;-)

Re: [fpc-pascal] FPC_ARMEL system calls

2008-06-02 Thread Florian Klaempfl
Luca Olivetti schrieb: Florian Klaempfl escribió: But you used OPT=-dFPC_ARMEL? Yes, I used OPT='-dFPC_ARMEL -dFPC_ABI_EABI -CfSOFT' And then you got the errors about floats? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://list

Re: [fpc-pascal] FPC_ARMEL system calls

2008-06-02 Thread Luca Olivetti
Florian Klaempfl escribió: But you used OPT=-dFPC_ARMEL? Yes, I used OPT='-dFPC_ARMEL -dFPC_ABI_EABI -CfSOFT' Bye -- Luca ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Hash table with different kind of key

2008-06-02 Thread Damien Gerard
Le Jun 2, 2008 à 11:48 AM, Damien Gerard a écrit : Le Jun 2, 2008 à 11:29 AM, Florian Klaempfl a écrit : Damien Gerard schrieb: Hi ! Is there somewhere hash tables with different kind of keys and if possible different kind of values ? Like in C++ actually with a std::map. May be it would

Re: [fpc-pascal] Hash table with different kind of key

2008-06-02 Thread Damien Gerard
Le Jun 2, 2008 à 11:29 AM, Florian Klaempfl a écrit : Damien Gerard schrieb: Hi ! Is there somewhere hash tables with different kind of keys and if possible different kind of values ? Like in C++ actually with a std::map. May be it would be possible with fpc 2.2.2 and generics ? fgl.TFPGM

Re: [fpc-pascal] Hash table with different kind of key

2008-06-02 Thread Florian Klaempfl
Damien Gerard schrieb: Hi ! Is there somewhere hash tables with different kind of keys and if possible different kind of values ? Like in C++ actually with a std::map. May be it would be possible with fpc 2.2.2 and generics ? fgl.TFPGMap ___ fpc-

[fpc-pascal] Hash table with different kind of key

2008-06-02 Thread Damien Gerard
Hi ! Is there somewhere hash tables with different kind of keys and if possible different kind of values ? Like in C++ actually with a std::map. May be it would be possible with fpc 2.2.2 and generics ? -- Damien Gerard [EMAIL PROTECTED] "Intelligence is 10 million rules." -- Douglas

Re: [fpc-pascal] FPC_ARMEL system calls

2008-06-02 Thread Florian Klaempfl
Luca Olivetti schrieb: En/na Luca Olivetti ha escrit: En/na Florian Klaempfl ha escrit: grepping for abi_eabi I found that the different syscall convention is in rtl/linux/arm/syscall.inc, but it is conditioned to FPC_ABI_EABI, not to FPC_ARMEL, so in order to have a fully eabi compliant c