blob: 9cb492d60498307d1dd4b0b2026571a6045a39f4 [file] [log] [blame]
Heinrich Schuchardt1b0c3162024-01-14 14:53:13 +01001.. index::
2 single: exception (command)
3
Heinrich Schuchardt039f7922021-01-26 12:59:09 +01004exception command
5=================
6
7Synopsis
8--------
9
10::
11
12 exception <type>
13
14Description
15-----------
16
17The exception command is used to test the handling of exceptions like undefined
18instructions, segmentation faults or alignment faults.
19
20type
21 type of exception to be generated. The available types are architecture
22 dependent. Use 'help exception' to determine which are available.
23
24 **ARM:**
25
26 breakpoint
27 prefetch abort
28
29 unaligned
30 data abort
31
32 undefined
33 undefined instruction
34
35 **RISC-V:**
36
Heinrich Schuchardtba0cfad2021-04-09 10:48:14 +000037 ebreak
38 breakpoint exception
39
Heinrich Schuchardt039f7922021-01-26 12:59:09 +010040 unaligned
41 load address misaligned
42
43 undefined
44 undefined instruction
45
46 **Sandbox:**
47
48 sigsegv
49 illegal memory access
50
51 undefined
52 undefined instruction
53
54 **x86:**
55
56 undefined
57 undefined instruction
58
59Examples
60--------
61
62::
63
64 => exception undefined
65
66 Illegal instruction
67 pc = 0x56076dd1a0f9, pc_reloc = 0x540f9
68
69 resetting ...