]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
s390: Remove duplicate checks for cached gdbarch at init
authorPhilipp Rudo <prudo@linux.vnet.ibm.com>
Tue, 23 Jan 2018 12:37:41 +0000 (13:37 +0100)
committerAndreas Arnez <arnez@linux.vnet.ibm.com>
Tue, 23 Jan 2018 12:37:41 +0000 (13:37 +0100)
commit0eb97953adcb12aa49e4924d1e28ce6af046d6e2
treec7d3fe2964510f8cf654717dc4d32101c2c30891
parentd820e164e4baccacd8d4e7e3761ec547402ae828
s390: Remove duplicate checks for cached gdbarch at init

When initializing the gdbarch there is a check whether an appropriate
gdbarch already exists in the gdbarch_list.  Failing of some of the checks
would lead to a different target description.  However
gdbarch_list_lookup_by_info already checks for

if (info->target_desc != arches->gdbarch->target_desc)
  continue;

Remove these duplicate checks.

gdb/ChangeLog:

* s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
when looking for cached gdbarch and add comment for remaining.
gdb/ChangeLog
gdb/s390-linux-tdep.c