OSDN Git Service

* ada-lang.c (ada_lookup_struct_elt_type): Handle case of a "naked"
authorbrobecke <brobecke>
Tue, 30 Sep 2008 21:36:21 +0000 (21:36 +0000)
committerbrobecke <brobecke>
Tue, 30 Sep 2008 21:36:21 +0000 (21:36 +0000)
commite3dd27de5fff4112d425f5ce50d9c615357ea2ec
treeac04a1d447a5129bc9816b00860455a24ff757f3
parent275ffcb1b018d199c134fcdb459ff6859c727b47
    * ada-lang.c (ada_lookup_struct_elt_type): Handle case of a "naked"
        variant branch.
        (empty_record): Use INIT_CPLUS_SPECIFIC, since this field is not
        supposed to be null.  Fixes debugger segfaults.
        (is_unchecked_variant): New function.
        (to_fixed_variant_branch_type): Modify to leave unchecked unions
        untouched.
        (ada_template_to_fixed_record_type_1): Fix comment.
gdb/ChangeLog
gdb/ada-lang.c