Hi,
I'm hoping to hack up modest a little (see explanation below). But
right now I just want to see how camel_folder_get_message is being
called. I wanted to use gdb and see a backtrace, but of course the live
binary is stripped.
So I compiled and installed the dbg versions of modest and tinymail, and
they're in /usr/lib/debug/usr/[bin|lib]/. But how do I run them?
Various attempts all produce various kinds of core dumps:
[sbox-FREMANTLE_X86: ~] > /usr/lib/debug/usr/bin/modest -s
Illegal instruction (core dumped)
[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) "$@"
I can run the normal binary fine, using either "/usr/bin/modest -s" or
"run-standalone.sh /usr/bin/modest -s".
As for what I'm trying to achieve...
I want to synchronise folders for offline reading. Looking at camel and
tinymail, there's heaps of functionality built-in for this, and I'm
hoping that it just needs to be switched on. Failing that, I could
write a function that loops over every message in the folder calling
<something>_get_message to ensure that the message is cached locally. I
thought I could add a d-bus call to invoke that so I can do my own hacky
sync from the command line when I want to.
If anyone has a patch or something floating around to make this Just
Work, I'd be happy to prematurely abandon my fooling around with gdb...
_______________________________________________
Modest-devel mailing list
Modest-devel@garage.maemo.org
https://garage.maemo.org/mailman/listinfo/modest-devel