This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug mi/10586] Anonymous unions/structs not handled correctly underMI


http://sourceware.org/bugzilla/show_bug.cgi?id=10586

--- Comment #14 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> 2012-01-12 22:51:16 UTC ---
CVSROOT:    /cvs/src
Module name:    src
Changes by:    kseitz@sourceware.org    2012-01-12 22:51:11

Modified files:
    gdb            : ChangeLog varobj.c 

Log message:
    PR mi/10586
    * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
    (ANONYMOUS_UNION_NAME): Define.
    (is_path_expr_parent): New function.
    (get_path_expr_parent): New function.
    (is_anonymous_child): New function.
    (create_child_with_value): If the child is anonymous and without
    a name, assign an object name to it.
    (c_describe_child): Use get_path_expr_parent to determine
    the parent expression.
    If there field represents an anonymous struct or union and
    has no name, set an appropriate display name and expression.
    (cplus_describe_child): Likewise.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.13733&r2=1.13734
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/varobj.c.diff?cvsroot=src&r1=1.187&r2=1.188

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]