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/14030] No children returned for unitialized pointer to class


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.


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