Ada exception catchpoint support cleanup.
authorJoel Brobecker <brobecker@gnat.com>
Sun, 11 Dec 2011 17:35:34 +0000 (17:35 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Sun, 11 Dec 2011 17:35:34 +0000 (17:35 +0000)
commitf17011e0cdc423256adc389981b4a51b8a13c1ec
tree083b19798f4a05e6c170d162bd5c1fac32dc1e6b
parent143bb59922e6bbeba29288fd5ac216f594c565dd
Ada exception catchpoint support cleanup.

This patch cleans up a bit the way we detect which type of runtime
the program uses with respect to Ada exceptions. It also removes
an unnecessary check in ada_exception_sal which is already performed
by ada_exception_support_info_sniffer.

Some of the changes are preparation work for detecting the situation
where the Ada runtime is found, but lacking debugging info.

gdb/ChangeLog:

        * ada-lang.c (ada_has_this_exception_support): New function,
        extracted out of ada_exception_sal and ada_exception_sal.
        (ada_exception_support_info_sniffer): Simplify by using
        ada_has_this_exception_support.
        (ada_exception_sal): Replace unnecessary checks by assertions.
        Minor simplifications.
gdb/ChangeLog
gdb/ada-lang.c