simplify target_is_pushed
authorTom Tromey <tromey@redhat.com>
Fri, 18 Jul 2014 14:48:43 +0000 (08:48 -0600)
committerTom Tromey <tromey@redhat.com>
Tue, 29 Jul 2014 14:53:15 +0000 (08:53 -0600)
commit84202f9c998c3f1bf0aa5d6457de7c9cad5f8500
tree70d4c6c5736c997ffcd489eabd9782eb75498c85
parent2530441cef6408cb50b9e96670d766104d6123c8
simplify target_is_pushed

While working on target_is_pushed, I noticed that it is written in a
strange way.  The code currently keeps an extra indirection, where a
simple linked list traversal is all that is needed.  It seems likely
this was done by copying and pasting other code.  However, there is no
reason to do this and the more obvious code is simpler to reason
about.  So, this patch change the implementation.

2014-07-29  Tom Tromey  <tromey@redhat.com>

* target.c (target_is_pushed): Simplify.
gdb/ChangeLog
gdb/target.c