PATCH: tests for MI commands

Mark Kettenis mark.kettenis@xs4all.nl
Wed Jul 27 21:25:00 GMT 2005


   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



More information about the Gdb-patches mailing list