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/13393] There is no way to access runtime type of C++variable via MI (using RTTI)


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

--- Comment #22 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> 2012-04-14 12:19:05 UTC ---
CVSROOT:    /cvs/src
Module name:    src
Changes by:    xgsa@sourceware.org    2012-04-14 12:18:51

Modified files:
    gdb/doc        : gdb.texinfo ChangeLog 
    gdb/testsuite/lib: mi-support.exp 
    gdb            : ChangeLog value.h varobj.c value.c 
    gdb/testsuite  : ChangeLog 
Added files:
    gdb/testsuite/gdb.mi: mi-var-rtti.cc mi-var-rtti.exp 

Log message:
    gdb/doc/ChangeLog:

    2012-04-14  Anton Gorenkov <xgsa@yandex.ru>

    PR mi/13393
    * gdb.texinfo (Print Settings): Extend the description for "set print
    object".
    (GDB/MI Variable Objects): Extend the description for -var-create and
    -var-list-children.

    gdb/testsuite/ChangeLog:

    2012-04-14  Anton Gorenkov <xgsa@yandex.ru>

    PR mi/13393
    * gdb.mi/mi-var-rtti.cc: New file.
    * gdb.mi/mi-var-rtti.exp: New file.
    * lib/mi-support.exp (mi_varobj_update_with_child_type_change): New
    function.
    (mi_varobj_update_with_type_change): updated to avoid code duplication.

    gdb/ChangeLog:

    2012-04-14  Anton Gorenkov <xgsa@yandex.ru>

    PR mi/13393
    * value.c (value_actual_type): New function.
    * value.h (value_actual_type): New declaration.
    * varobj.c (update_type_if_necessary): New function.
    (varobj_create): Call value_actual_type instead of
    value_type.
    (install_dynamic_child): distinct changed and type changed MI variable
    objects.
    (update_dynamic_varobj_children): Updated for install_dynamic_child
    change.  All callers updated.
    (varobj_update): Support for MI variable object type change if
    the value changed and RTTI is used to determine the type.
    (create_child_with_value): Call value_actual_type instead of
    value_type.
    (adjust_value_for_child_access): Extended with a new parameter which
    specify whether the given value should be casted to enclosing type.
    All callers updated.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.mi/mi-var-rtti.cc.diff?cvsroot=src&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.mi/mi-var-rtti.exp.diff?cvsroot=src&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/doc/gdb.texinfo.diff?cvsroot=src&r1=1.940&r2=1.941
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/doc/ChangeLog.diff?cvsroot=src&r1=1.1293&r2=1.1294
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/lib/mi-support.exp.diff?cvsroot=src&r1=1.110&r2=1.111
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.14105&r2=1.14106
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/value.h.diff?cvsroot=src&r1=1.200&r2=1.201
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/varobj.c.diff?cvsroot=src&r1=1.194&r2=1.195
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/value.c.diff?cvsroot=src&r1=1.155&r2=1.156
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.3159&r2=1.3160

-- 
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]