Re: [RFA/Ada(v2) 1/3] Add command to list Ada exceptions

Tom Tromey
2013-11-15T15:32:06Z

>>>>> "Joel" == Joel Brobecker <brobecker@adacore.com> writes:

Joel> On Fedora, and I suspect may other distros, the default
Joel> for gnatmake is to like against the shared libgnat, whereas the
Joel> gnatmake I use links against the static libgnat - this is why
Joel> I didn't see that omission. Can you try the attached?

Joel> * gdb.ada/info_exc.exp: Start inferior before starting
Joel> the "info exceptions" tests.
Joel> * gdb.ada/mi_exc_info.exp: Start inferior before starting
Joel> the "-info-ada-exceptions" tests.

Thanks Joel. This still fails, but in a new way, see appended.

Tom

(gdb) info exceptions
All defined Ada exceptions:
constraint_error: 0x7ffff7fce600
program_error: 0x7ffff7fce580
storage_error: 0x7ffff7fce540
tasking_error: 0x7ffff7fce500
<_abort_signal>: 0x7ffff7fce4c0
ada.calendar.time_error: 0x7ffff7fcc060
ada.calendar.time_zones.unknown_zone_error: 0x7ffff7fcc0c0
ada.command_line.response_file.circularity_detected: 0x7ffff7fcc180
ada.command_line.response_file.file_does_not_exist: 0x7ffff7fcc240
ada.command_line.response_file.line_too_long: 0x7ffff7fcc200
ada.command_line.response_file.no_closing_quote: 0x7ffff7fcc1c0
ada.containers.capacity_error: 0x7ffff7fcc2c0
ada.io_exceptions.data_error: 0x7ffff7fcc440
ada.io_exceptions.device_error: 0x7ffff7fcc4c0
ada.io_exceptions.end_error: 0x7ffff7fcc480
ada.io_exceptions.layout_error: 0x7ffff7fcc400
ada.io_exceptions.mode_error: 0x7ffff7fcc580
ada.io_exceptions.name_error: 0x7ffff7fcc540
ada.io_exceptions.status_error: 0x7ffff7fcc5c0
ada.io_exceptions.use_error: 0x7ffff7fcc500
ada.numerics.argument_error: 0x7ffff7fcc740
ada.strings.index_error: 0x7ffff7fcc8a0
ada.strings.length_error: 0x7ffff7fcc920
ada.strings.pattern_error: 0x7ffff7fcc8e0
ada.strings.translation_error: 0x7ffff7fcc860
ada.strings.utf_encoding.encoding_error: 0x7ffff7fcc9a0
ada.tags.tag_error: 0x7ffff7fccac0
ada.text_io.editing.picture_error: 0x7ffff7fccb00
ada.wide_text_io.editing.picture_error: 0x7ffff7fccc80
ada.wide_wide_text_io.editing.picture_error: 0x7ffff7fccd20
const.aint_global_e: 0x608120
gnat.awk.data_error: 0x7ffff7fcce80
gnat.awk.end_error: 0x7ffff7fccf00
gnat.awk.field_error: 0x7ffff7fccec0
gnat.awk.file_error: 0x7ffff7fccf40
gnat.awk.session_error: 0x7ffff7fccf80
gnat.calendar.time_io.picture_error: 0x7ffff7fccfe0
gnat.cgi.cookie.cookie_not_found: 0x7ffff7fcd0c0
gnat.cgi.data_error: 0x7ffff7fcd060
gnat.cgi.parameter_not_found: 0x7ffff7fcd020
gnat.command_line.exit_from_command_line: 0x7ffff7fcd120
gnat.command_line.invalid_parameter: 0x7ffff7fcd160
gnat.command_line.invalid_section: 0x7ffff7fcd1e0
gnat.command_line.invalid_switch: 0x7ffff7fcd1a0
gnat.debug_pools.accessing_deallocated_storage: 0x7ffff7fcd300
gnat.debug_pools.accessing_not_allocated_storage: 0x7ffff7fcd340
gnat.debug_pools.freeing_deallocated_storage: 0x7ffff7fcd280
gnat.debug_pools.freeing_not_allocated_storage: 0x7ffff7fcd2c0
gnat.directory_operations.directory_error: 0x7ffff7fcd3a0
gnat.expect.invalid_process: 0x7ffff7fcd440
gnat.expect.process_died: 0x7ffff7fcd400
gnat.lock_files.lock_error: 0x7ffff7fcd4a0
gnat.perfect_hash_generators.too_many_tries: 0x7ffff7fcd540
gnat.serial_communications.serial_error: 0x7ffff7fcd5a0
gnat.sockets.host_error: 0x7ffff7fce7c0
gnat.sockets.service_error: 0x7ffff7fce780
gnat.sockets.socket_error: 0x7ffff7fce800
gnat.sockets.thin_common.in_addr_access_pointers.pointer_error: 0x7ffff7fce900
gnat.spitbol.patterns.pattern_stack_overflow: 0x7ffff7fcd920
gnat.string_split.index_error: 0x7ffff7fcd9a0
gnat.wide_string_split.index_error: 0x7ffff7fcda00
gnat.wide_wide_string_split.index_error: 0x7ffff7fcda40
interfaces.c.strings.dereference_error: 0x7ffff7fcdd60
interfaces.c.strings.update_error: 0x7ffff7fcdd20
interfaces.c.terminator_error: 0x7ffff7fcda80
interfaces.cobol.conversion_error: 0x7ffff7fcdce0
system.assertions.assert_failure: 0x7ffff7fcddc0
system.aux_dec.non_ada_error: 0x7ffff7fcde00
system.exceptions.foreign_exception: 0x7ffff7fcdee0
system.global_locks.lock_error: 0x7ffff7fcdfe0
system.regexp.error_in_regexp: 0x7ffff7fce240
system.regpat.expression_error: 0x7ffff7fce280
system.rpc.communication_error: 0x7ffff7fce2c0
(gdb) FAIL: gdb.ada/info_exc.exp: info exceptions