Recent

Author Topic: Please, HELP with debuggin WinCE app.  (Read 5686 times)

epergola

  • Full Member
  • ***
  • Posts: 157
Please, HELP with debuggin WinCE app.
« on: July 17, 2009, 08:41:28 pm »
Hi
Maybe I was posting to the wrong Forum.
I hope I will get some real help here.
I get the dreaded (end erratic , i.e.different places, at different runs) SIGSEVG error.
I Have this setup:
  in \emulators\gdb I have
     arm-wince-pe-stub.exe
     gdb.exe
my app is in c:\lazarus\cf
   Project Compiler Options Linking = -g (although I also tried with -gl and all other combinations)
   Environment Options Degugger has C:\EMULATORS\GDB\GDB.EXE
Emulator WM 6.1
   The app is for WinCe target.
When I run from lazarus, after the error, I get the Assembler Pane
(useless to me). I want to know which line number of which unit
causes the errror. How do I achieve that?
If I try the gdb directly, in C:\EMULATORS\GDB
               GDB --tui c:\lazarus\cf\test.exe
I first see a message that says "This GDB was configured as "--host=i686-pc-mingw32 --target=arm-wince-pe"...test.lpr:26: No such file or directory."
where line 26 is (in my Project page)
  {$I test.lrs}
I include C:\LAZARUS\CF in the PATH but nothing changes.
Then, after 'run', the app starts on the emulator, and after a few clicks i get "Program received signal SIGSEGV, Segmentation fault.
0x03f6e18c in ?? ()"
then if I type 'info line 0x03f6e18c' it shows
  Function "0x03f6e18c" not defined.
How do I get to the uinit/line causing the error?
What steps am I missing or doing wrong?

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2706
Re: Please, HELP with debuggin WinCE app.
« Reply #1 on: July 22, 2009, 10:14:33 am »
Do you strip or upx your exe ? Ifso, don't do that.
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

 

TinyPortal © 2005-2018