Download bdiGDB User Manual
Transcript
bdiGDB for GNU Debugger, BDI2000 (ColdFire) User Manual 21 Breakpoints: There are two breakpoint modes supported. One of them (SOFT) is implemented by replacing application code with a HALT instruction. The other (HARD) uses the built in breakpoint logic. If HARD is used, only up to 1 ( 4 for V4 cores ) breakpoints can be active at the same time. The following example selects SOFT as the breakpoint mode: BREAKMODE SOFT ;<AGENT> SOFT or HARD, HARD uses hardware breakpoints All the time the application is suspended (i.e. caused by a breakpoint) the target processor remains freezed. Target Exceptions: If enabled, the BDI will catch all unhandled exceptions. This is only possible if the vector table is writable. At vector 0 the BDI writes a HALT, RTE instruction sequence and lets all other vectors point to this short exception handler. The BDI reads back the VBR after processing the initilaisation list in order to get the base address of the vector table. [INIT] WCREG 0x801 [TARGET] VECTOR CATCH 0x00000000 ;set vector base ;enable vector catching © Copyright 1997-2011 by ABATRON AG Switzerland V 1.13