Help - Search - Members - Calendar
Full Version: GDB
OESF Forums > Distros, Development, and Model Specific Forums > Everything Development > User Request for Applications
ced
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...
lardman
It's in the OZ feeds. Might also be on killefiz.de.

Si
pmf
QUOTE
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.
ced
I've installed GDB 5.2 from ZSI and I'm getting this:

CODE
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.
mteira
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.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.