Next: , Previous: GDB/MI File Transfer Commands, Up: GDB/MI


27.22 Ada Exceptions gdb/mi Commands

The -info-ada-exceptions Command

Synopsis
      -info-ada-exceptions [ regexp]

List all Ada exceptions defined within the program being debugged. With a regular expression regexp, only those exceptions whose names match regexp are listed.

gdb Command

The corresponding gdb command is ‘info exceptions’.

Result

The result is a table of Ada exceptions. The following columns are defined for each exception:

name
The name of the exception.
address
The address of the exception.
Example
     -info-ada-exceptions aint
     ^done,ada-exceptions={nr_rows="2",nr_cols="2",
     hdr=[{width="1",alignment="-1",col_name="name",colhdr="Name"},
     {width="1",alignment="-1",col_name="address",colhdr="Address"}],
     body=[{name="constraint_error",address="0x0000000000613da0"},
     {name="const.aint_global_e",address="0x0000000000613b00"}]}

Catching Ada Exceptions

The commands describing how to ask gdb to stop when a program raises an exception are described at Ada Exception GDB/MI Catchpoint Commands.