This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug mi/14030] No children returned for unitialized pointer to class
- From: "jens.elmenthaler at me dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Sat, 28 Apr 2012 10:14:27 +0000
- Subject: [Bug mi/14030] No children returned for unitialized pointer to class
- Auto-submitted: auto-generated
- References: <bug-14030-4717@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=14030
--- Comment #2 from Jens Elmenthaler <jens.elmenthaler at me dot com> 2012-04-28 10:14:27 UTC ---
(In reply to comment #1)
> Probably you meant gdb bug 13393, cause the 376901 one is for Eclipse CDT.
> And I have one more question: is the problem reproducible with "set print
> object" on or off?
Oh, yes I meant 13393.
The problem occurs only with "set print object on". The call tree of interest
is:
mi_cmd_var_create
-> print_varobj
-> varobj_get_num_children
-> cplus_number_of_children
-> adjust_value_for_child_access
if on: it uses the target type in value, which has not set nfields yet
if off: it uses get_target_type() from the type parameter, which then
also resolves the nfields parameter.
--
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.