Author Topic: GDB  (Read 3612 times)

ced

  • Full Member
  • ***
  • Posts: 225
    • View Profile
    • http://
GDB
« 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...
SL-5600, kernel 2.6.16 + GPE from .dev
Ethernet Socket LP-E
Viking 256M SD

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
GDB
« Reply #1 on: May 26, 2004, 12:51:46 pm »
It\'s in the OZ feeds. Might also be on killefiz.de.

Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

pmf

  • Jr. Member
  • **
  • Posts: 64
    • View Profile
GDB
« Reply #2 on: May 27, 2004, 07:14:19 pm »
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

  • Full Member
  • ***
  • Posts: 225
    • View Profile
    • http://
GDB
« Reply #3 on: May 28, 2004, 04:06:50 am »
I\'ve installed GDB 5.2 from ZSI and I\'m getting this:

Code: [Select]
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.
SL-5600, kernel 2.6.16 + GPE from .dev
Ethernet Socket LP-E
Viking 256M SD

mteira

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • http://zports.sourceforge.net
GDB
« Reply #4 on: June 24, 2004, 09:20:46 am »
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.
« Last Edit: June 24, 2004, 09:21:52 am by mteira »