Re: set print object on should affect MI varobjs (PR mi/13393)

xgsa
2012-03-26T19:08:41Z

Just a reminder: please, review this patch.

Thanks,
Anton

-------- Original message --------
> Hi,
>
>> If "set print object" now affects MI as well, that should be mentioned
>> both where "set print object" is documented and where the relevant
>> varobj related MI commands are described.
>
> Here is the previous patch with the documentation updated.
>
>
> The original patch description:
>
> That patch makes "set print object" option affect MI interface. Here
> is an example:
>
> struct Base {
> Base() : a(1) {}
> virtual ~Base() {} // Enforce type to have RTTI
> int a;
> };
>
> struct Derived : public Base {
> Derived() : b(2) {}
> int b;
> };
>
> int main() {
> Derived b;
> Base* aPtr = &b;
> return 0; // [1]
> }
>
> Start gdb in MI mode and run to line [1]. Make -var-create for aPtr.
> If "set print object" is "on" you will see the type Derived* for the
> created varobj.
>
> See also more details here:
> http://sourceware.org/bugzilla/show_bug.cgi?id=13393
>
>
> Waiting for your comments!
>
> Thanks,
> Anton.