Sat Nov 8 13:26:29 EST 2014
So the basic structure of the stub seems to be working. Most of
what's left is low-level fiddling: continue.
GDB also complains:
(gdb) p main()
Program received signal SIGTRAP, Trace/breakpoint trap.
0xbc020008 in ?? ()
The program being debugged was signaled while in a function called from GDB.
GDB remains in the frame where the signal was received.
To change this behavior use "set unwindonsignal on".
Evaluation of the expression containing the function
(main) will be abandoned.
When the function is done executing, GDB will silently stop.
Assuming this is because the stack pointer is not at the expected
position. How to find out what it actually expects? The simplest way
seems to just reuse working code from the RockBox stub.