[Ada] Make the exception_support_info data per inferior.
authorJoel Brobecker <brobecker@gnat.com>
Sun, 11 Dec 2011 17:37:56 +0000 (17:37 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Sun, 11 Dec 2011 17:37:56 +0000 (17:37 +0000)
commit3eecfa55590529fee48bee4d85d896e1105eb549
treef2564e85fd2abe7ad3bbd6b95637b80aadc70243
parenta6af7abe5d7e3635aac073dfc2b1fd336d42089d
[Ada] Make the exception_support_info data per inferior.

The ada-lang module was using a static global called "exception_info"
for all inferiors.  But each inferior might be different, and thus
this patch makes this data per-inferior.

gdb/ChangeLog:

        * ada-lang.c (struct ada_inferior_data) [exception_info]:
        New field.
        (exception_info): Delete.
        (ada_exception_support_info_sniffer): Get exception_support_info
        data from our per-inferior data.  Adjust code accordingly.
        (ada_unhandled_exception_name_addr_from_raise): Likewise.
        (ada_exception_name_addr_1, ada_exception_sym_name): Ditto.
        (ada_executable_changed_observer): Delete.
        (_initialize_ada_language): Remove call to
        observer_attach_executable_changed.
gdb/ChangeLog
gdb/ada-lang.c