OSDN Git Service

[Ada] Make the exception_support_info data per inferior.
authorbrobecke <brobecke>
Sun, 11 Dec 2011 17:37:56 +0000 (17:37 +0000)
committerbrobecke <brobecke>
Sun, 11 Dec 2011 17:37:56 +0000 (17:37 +0000)
commitab031ab007199b897ff8f2341b2e352936af4bd5
tree2450b9dde1acca092a8e9f03a337c1f8b95ff326
parentd74680670ae4b83001b70d98466011671de8bdea
[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