[maemo-developers] [maemo-developers] Problem with GDB and threads...
From: Eero Tamminen eero.tamminen at movial.fiDate: Tue Jul 18 16:23:32 EEST 2006
- Previous message: [maemo-developers] Modifying the Root Filesystem
- Next message: [maemo-developers] Problem with GDB and threads...
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi, > I simply compiled with "-g" before, adding the "-no-omit-frame-pointer" > directive did not help. Actually I think the library where the function giving infinite backtrace is should be compiled with -g (or debug package for it should be installed). If that doesn't help then you need to compile that library / binary with -fno-omit-frame-pointer. At least one reason for the infinite backtraces has been __attribute__ ((__noreturn__)) specified to functions. That is given to functions that do not return and for them -fno-omit-frame-pointer is needed to get working backtrace, for them -g is not enough. Normally those are exit functions, but maybe thread creation function doesn't return either? (I've seen some thread usage example code where __noreturn__ attribute is used for them) - Eero
- Previous message: [maemo-developers] Modifying the Root Filesystem
- Next message: [maemo-developers] Problem with GDB and threads...
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]