exception.rst 954 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. exception command
  2. =================
  3. Synopsis
  4. --------
  5. ::
  6. exception <type>
  7. Description
  8. -----------
  9. The exception command is used to test the handling of exceptions like undefined
  10. instructions, segmentation faults or alignment faults.
  11. type
  12. type of exception to be generated. The available types are architecture
  13. dependent. Use 'help exception' to determine which are available.
  14. **ARM:**
  15. breakpoint
  16. prefetch abort
  17. unaligned
  18. data abort
  19. undefined
  20. undefined instruction
  21. **RISC-V:**
  22. unaligned
  23. load address misaligned
  24. undefined
  25. undefined instruction
  26. **Sandbox:**
  27. sigsegv
  28. illegal memory access
  29. undefined
  30. undefined instruction
  31. **x86:**
  32. undefined
  33. undefined instruction
  34. Examples
  35. --------
  36. ::
  37. => exception undefined
  38. Illegal instruction
  39. pc = 0x56076dd1a0f9, pc_reloc = 0x540f9
  40. resetting ...
  41. Return value
  42. ------------
  43. The return value $? is always set to 0 (true).