Reply
Thread Tools
Posts: 72 | Thanked: 58 times | Joined on Feb 2008
#1
I'd like to use gdb to poke around in the internals of modest/tinymail and figure out how it works. I've compiled my own modest and tinymail packages and installed the -dev and -dbg versions of everything. But I'm having trouble figuring out how to get started.

I can invoke modest -s from the command line, but that's the stripped binary. The debug version installs in /usr/lib/debug/usr/bin. This seems to install as non-executable. If I change permission and try to run:

[sbox-FREMANTLE_X86: ~] > chmod a+x /usr/lib/debug/usr/bin/modest
[sbox-FREMANTLE_X86: ~] > /usr/lib/debug/usr/bin/modest -s
Illegal instruction (core dumped)

...so that's no good. If I try to run the version that was compiled:

[sbox-FREMANTLE_X86: ~/modest/modest/modest-3.1.18+0m5/src] > ./modest -s
Segmentation fault (core dumped)

It seems that modest is part of this maemo invoker thing and therefore supposed to be a shared library. Is it possible to run it off the command line as a normal application? Maybe there's some way to simply statically link everything?
 
Posts: 2,802 | Thanked: 4,491 times | Joined on Nov 2007
#2
You need to run it with run-standalone.sh, see http://modest.garage.maemo.org/ (under development).
 

The Following User Says Thank You to lma For This Useful Post:
Posts: 72 | Thanked: 58 times | Joined on Feb 2008
#3
OK, fair enough. But that dumps core too, in different ways depending on whether I try it with the dbg binary or the version in the build directory:

[sbox-FREMANTLE_X86: ~] > run-standalone.sh /usr/lib/debug/usr/bin/modest
/usr/bin/run-standalone.sh: line 11: 14199 Illegal instruction (core dumped) "$@"

[sbox-FREMANTLE_X86: ~/modest/modest/modest-3.1.18+0m5/src] > run-standalone.sh ./modest
/usr/bin/run-standalone.sh: line 11: 14182 Segmentation fault (core dumped) "$@"
 
Posts: 2,802 | Thanked: 4,491 times | Joined on Nov 2007
#4
Hm, how are you bulding modest? I can't compile either trunk (missing hildon live search bits) or the Fremantle source package (missing calendar-ui-widgets-0-dev dependency) at the moment.
 
Posts: 72 | Thanked: 58 times | Joined on Feb 2008
#5
I'm compiling the fremantle source package using the -d flag to ignore the dependency on calendar widgets. This was after finding this post on modest-devel:

http://www.mail-archive.com/modest-d.../msg00042.html

Come to think of it, that's probably a better forum than here to ask questions.
 
Posts: 72 | Thanked: 58 times | Joined on Feb 2008
#6
Just a followup: it's not just me. The supplied version of gdb is simply broken. It doesn't work. Don't try to make it work.

http://chaos.troll.no/~harald/gdb7/
 
Reply


 
Forum Jump


All times are GMT. The time now is 02:29.