This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] varobj.c: check wrapper return value
- To: Fernando Nasser <fnasser at redhat dot com>
- Subject: Re: [RFA] varobj.c: check wrapper return value
- From: Keith Seitz <keiths at cygnus dot com>
- Date: Wed, 10 Oct 2001 10:02:36 -0700 (PDT)
- cc: <gdb-patches at sources dot redhat dot com>
On Wed, 10 Oct 2001, Fernando Nasser wrote:
> Thanks. Please check it in the trunk.
Done. Thanks for the ultra-fast response!! What service!
Keith
> > ChangeLog
> > 2001-10-10 Keith Seitz <keiths@redhat.com>
> >
> > * varobj.c (cplus_value_of_child): Deal with a failure
> > to dereference a pointer object.
> >
> > Patch
> > Index: varobj.c
> > ===================================================================
> > RCS file: /cvs/src/src/gdb/varobj.c,v
> > retrieving revision 1.20
> > diff -u -p -r1.20 varobj.c
> > --- varobj.c 2001/08/17 18:56:49 1.20
> > +++ varobj.c 2001/10/10 15:59:38
> > @@ -2313,7 +2313,10 @@ cplus_value_of_child (struct varobj *par
> >
> > if (TYPE_CODE (VALUE_TYPE (parent->value)) == TYPE_CODE_PTR
> > || TYPE_CODE (VALUE_TYPE (parent->value)) == TYPE_CODE_REF)
> > - gdb_value_ind (parent->value, &temp);
> > + {
> > + if (!gdb_value_ind (parent->value, &temp))
> > + return NULL;
> > + }
> > else
> > temp = parent->value;
>
> --
> Fernando Nasser
> Red Hat Canada Ltd. E-Mail: fnasser@redhat.com
> 2323 Yonge Street, Suite #300
> Toronto, Ontario M4P 2C9
>