John, back at home, I can't seem to find the ARM sources right now, but from memory:
I had to initialize the sigsegv signal handler differently (putting the handler into sac.sa_sigaction instead of sac.sa_handler (in unixstuff.c) in order to get a siginfo_t as second argument instead of a struct sigcontext to the SIGSEGV signal handler. In the signal handler, I could then get the fault address from the siginfo_t (the sigcontext doesn't seem to have it on ARM Linux). I think the correct member was siginfo_t->fault_address. What happens in your code seems to be that you're not getting the correct fault address, the code finds out this is not within the QL's address space and bails out. If I remember right, those were the only changes to make it work. (Not on a RPI, but on a Genesi ARM Smartbook, but that shouldn't matter) If you need more help, just come back on me. Cheers, Tobias Am 24.05.2012 um 13:59 schrieb Martin Wheatley: > On 24/05/2012 12:37, John Southern wrote: > > > Hi John - nice to hear you are still about. Takes me back to one evening in > the top room of a pub near Tony's > You and I and Colin Murphy were over in one corner meeting for the first time > and the experts were all at the > tables dazzling each other! > > martinw > _______________________________________________ > QL-Users Mailing List > http://www.q-v-d.demon.co.uk/smsqe.htm _______________________________________________ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
