ARM VERSION 1.2 Datasheet Page 167

  • Download
  • Add to my manuals
  • Print
  • Page
    / 176
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 166
Semihosting
ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 5-29
5.5.2 angel_SWIreason_ReportException (0x18)
This SWI can be called by an application to report an exception to the debugger directly.
The most common use is to report that execution has completed, using
ADP_Stopped_ApplicationExit
.
Entry
On entry r1 is set to one of the values listed in Table 5-3 and Table 5-4. These values are
defined in
adp.h
.
The hardware exceptions are generated if the debugger variable
$vector_catch
is set to
catch that exception type, and the debug agent is capable of reporting that exception
type. Angel cannot report exceptions for interrupts on the vector it uses itself.
Exception handlers can use these SWIs at the end of handler chains as the default action,
to indicate that the exception has not been handled.
Table 5-3 Hardware vector reason codes
Name (#defined in adp.h) Hexadecimal value
ADP_Stopped_BranchThroughZero 0x20000
ADP_Stopped_UndefinedInstr 0x20001
ADP_Stopped_SoftwareInterrupt 0x20002
ADP_Stopped_PrefetchAbort 0x20003
ADP_Stopped_DataAbort 0x20004
ADP_Stopped_AddressException 0x20005
ADP_Stopped_IRQ
0x20006
ADP_Stopped_FIQ 0x20007
Table 5-4 Software reason codes
Name (#defined in adp.h) Hexadecimal value
ADP_Stopped_BreakPoint 0x20020
ADP_Stopped_WatchPoint 0x20021
ADP_Stopped_StepComplete 0x20022
Page view 166
1 2 ... 162 163 164 165 166 167 168 169 170 171 172 ... 175 176

Comments to this Manuals

No comments