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