s390: Move tdesc validation to separate function
authorPhilipp Rudo <prudo@linux.vnet.ibm.com>
Tue, 23 Jan 2018 12:37:42 +0000 (13:37 +0100)
committerAndreas Arnez <arnez@linux.vnet.ibm.com>
Tue, 23 Jan 2018 12:37:42 +0000 (13:37 +0100)
commit47c9317e71768ba9788c6dc055fb6932d0f0923a
tree5aaa4ce46131eabb21486ae31b96c7885b3c5fc5
parent095085d8473689d86e00cd7d9a63680ca8faeda6
s390: Move tdesc validation to separate function

Simplify s390_gdbarch_init by moving the target description validation to
a separate function.

gdb/ChangeLog:

* s390-linux-tdep.c (s390_tdesc_valid): New function.
(s390_validate_reg_range): New macro.
(s390_gdbarch_init): Adjust.
gdb/ChangeLog
gdb/s390-linux-tdep.c