[CRIS] Don't internal error if forced big endian
authorPedro Alves <palves@redhat.com>
Tue, 8 Mar 2016 01:45:09 +0000 (01:45 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 9 Mar 2016 03:14:07 +0000 (03:14 +0000)
commit114d7832b0e07452277d748c81d8bc0c5675a1bc
tree63d2ce66e42ce324d7c4508d972e1bdbfd236645
parentd7a87b5e4343467db23b70e73b156c9cc79c50ea
[CRIS] Don't internal error if forced big endian

This fixes:

  $ ./gdb -q -ex "set endian big" -ex "set architecture cris"
  The target is assumed to be big endian
  .../src/gdb/cris-tdep.c:4051: internal-error: cris_gdbarch_init: big endian byte order in info
  A problem internal to GDB has been detected,
  further debugging may prove unreliable.
  Quit this debugging session? (y or n)

The "set cris-version" command can likewise cause internal errors.

The gdbarch init routine should be returning 0 to reject the
architecture instead of internal erroring on user input.

gdb/ChangeLog:
2016-03-09  Pedro Alves  <palves@redhat.com>

* cris-tdep.c (cris_gdbarch_init): Return 0 if the info's byte
order is BFD_ENDIAN_BIG or if the cris version is unsupported.
gdb/ChangeLog
gdb/cris-tdep.c
This page took 0.026025 seconds and 4 git commands to generate.