cris-tdep.c: Use unsigned variable for unsigned command.
authorPedro Alves <palves@redhat.com>
Fri, 19 Apr 2013 15:14:23 +0000 (15:14 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 19 Apr 2013 15:14:23 +0000 (15:14 +0000)
commite4286e57c527e5b92e0d1458a71dbca7b9b96cec
treefbd0dd3807bcccbbd82abf981450120c12bb367e
parent001f13d822104158239fe26a05d9154d967cbe56
cris-tdep.c: Use unsigned variable for unsigned command.

"set cris-version" is an unsigned command:

    /* CRIS-specific user-commands.  */
    add_setshow_uinteger_cmd ("cris-version", class_support,
       &usr_cmd_cris_version,
       _("Set the current CRIS version."),
       _("Show the current CRIS version."),
       _("\
  Set to 10 for CRISv10 or 32 for CRISv32 if autodetection fails.\n\
  Defaults to 10. "),

Tested by building on x86_64 Fedora 17.

2013-04-19  Pedro Alves  <palves@redhat.com>

* cris-tdep.c (usr_cmd_cris_version): Make unsigned.
(struct gdbarch_tdep) <cris_version>: Make unsigned.
(cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
gdb/ChangeLog
gdb/cris-tdep.c