This is the mail archive of the gdb-patches@sources.redhat.com 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]

Re: PATCH: tests for MI commands


   From: Nick Roberts <nickrob@snap.net.nz>
   Date: Wed, 27 Jul 2005 23:47:49 +1200

   Daniel Jacobowitz writes:
    >                                                            ...But it
    > looks like these failures are related to your change:
    > 
    > +FAIL: gdb.mi/mi-var-child.exp: listing of children, simple types: names, type and values, complex types: names and types

   I don't get this failure (this is one file I did test!).

The problem is that in var-cmd.c:do_children_tests(), the member
struct_declarations.character is uninitialized.  So you in the output
you get whatever random value was on the stack.  In your case this
apparently was 0, but in my case it was -44.  The proper thing to do
is probably change var-cmd.c to properly initialize the member.  But
my naive attempt at doing this caused a lot of other failures.  Since
I don't really understand what this mi stuff is doing, can you please
look into it?

Mark


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