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

Re: [PATCH 08/10] microblaze


On Tuesday, July 31, 2012 07:44:37 AM Michael Eager wrote:
> >     /* Debug this files internals.  */
> >
> > -  add_setshow_zinteger_cmd ("microblaze", class_maintenance,
> > -                         &microblaze_debug_flag, _("\
> > +  add_setshow_zuinteger_cmd ("microblaze", class_maintenance,
> > +                          &microblaze_debug_flag, _("\
> >
> >   Set microblaze debugging."), _("\
> >   Show microblaze debugging."), _("\
> >   When non-zero, microblaze specific debugging is enabled."),
> >
> > -                         NULL,
> > -                         NULL,
> > -                         &setdebuglist, &showdebuglist);
> > +                          NULL,
> > +                          NULL,
> > +                          &setdebuglist, &showdebuglist);
> >
> >   }
> 
> Why is this needed?

Because debug flag should be 'unsigned' and 'add_setshow_zinteger_cmd' has 
been a little bit abused in GDB.  This patch tries to fix it.

-- 
Yao (éå)


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