Set Debugger$AnnotatedFile
Colin Ferris (399) 1818 posts |
Is there any info on how – to ‘read/make sense’ of the info in the file returned after an error? Thanks |
Jeffrey Lee (213) 6048 posts |
General info about the feature: https://www.riscosopen.org/wiki/documentation/show/Debugger%20Exception%20Dumps |
Colin Ferris (399) 1818 posts |
Using RO5.23 (12-May 2017) VRPC-DL (still not downloading any emails from gmail-but that is another problem) Any idea where the error is comming from? *showregs gives ‘Mode USR26’ PSR 00000000 R13_usr = 00045cf4 R14_usr = 0000ca3c R13_svc = fa207fa0 R14_svc = 20166a64 R15 = fc019db0 = +19db0 in the Kernel SVC stack: R14_usr = 0000ca3c = +4a3c in application memory = Connect__9ConnectorFv +130 USR stack: End of dump |
Colin Ferris (399) 1818 posts |
How would you implement ‘TSTP PC,#0’ in 32bit code? |
Rick Murray (539) 13850 posts |
TSTP is an AND mask, isn’t it? So the result would be PC AND 0 – which is zero? Something like |
Jon Abbott (1421) 2651 posts |
Is this the only occurance of a P instruction in the subroutine? If so, it’s probably just clearing the flags (MSR CPSR_f, #0). If there’s another P instruction further up, it’s possibly also switching CPU Mode and/or enabling IRQ/FIQ:
As Rick points out, never change the full CPSR with a literal value as ARM are bound to use the reserved bits in future designs. The BIC’s in the code above can be combined into one instruction once you know what the code actually needs to do. |
Colin Ferris (399) 1818 posts |
Thanks for that info – bic r0,r0,&CF instead of &C3 might be worth a try. VRPC Internet32/!Hermes seems to work ok with RO4.02 – but when using RO5.23/!Hermes to contact gmail/securesockets – !Hermes sometimes crashes out :-( Not sure if there is any difference between teqp,pc,#0 and tstp,pc,#0 |
Steve Pampling (1551) 8172 posts |
I seem to recall a recent item from R-Comp (or the developer) about updates to various software to fix a collection of zeropain problems among other things. I think they were seeking information on reproducible errors so that anything they had missed could be covered too. |