OESF Portables Forum
Everything Else => Zaurus - Everything Development => Distros, Development, and Model Specific Forums => Archived Forums => User Request for Applications => Topic started by: ced on May 26, 2004, 10:14:41 am
-
I\'m just wondering if someone got GDB compiled for ARM?
I\'ve wrote a SDL demo. It work fine on my Intel PC but crash (on exit) on my Zaurus. So I would like to bebug my program on the Zaurus itself...
-
It\'s in the OZ feeds. Might also be on killefiz.de.
Si
-
It work fine on my Intel PC but crash (on exit) on my Zaurus. So I would like to bebug my program on the Zaurus itself...
I could not get backtraces for SDL apps because gdb did not like to debug apps linked against libpthread; if your experiences will be different I\'d like to hear how you did it.
-
I\'ve installed GDB 5.2 from ZSI and I\'m getting this:
bash-2.05$ gdb testsdl
GNU gdb 5.2
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "armv4l-unknown-linux-gnu"...
(no debugging symbols found)...
(gdb) run ./ogre.png
Starting program: /home/zaurus/sdl/testsdl ./ogre.png
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
sprite file -> ./ogre.png
(no debugging symbols found)...
Program received signal SIG32, Real-time event 32.
0x406f42e0 in sigsuspend () from /lib/libc.so.6
(gdb)
I think is crashing when is hitting the SDL init call.
-
When you get that real-time event, just type
cont
the program will continue running. That's what I make when debugging sdl based programs.