]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/target.h
introduce and use find_target_at
authorTom Tromey <tromey@redhat.com>
Mon, 28 Oct 2013 18:16:24 +0000 (12:16 -0600)
committerTom Tromey <tromey@redhat.com>
Wed, 19 Feb 2014 14:45:22 +0000 (07:45 -0700)
commit8b06beed0f0eb221067a1013add2efd159a36ade
treef9db016ba84b5f8a4d5f9b42fe77e6e8dc919e58
parent6a109b6b2c98b949e490791ae57c100bb53be57e
introduce and use find_target_at

This patch adds find_target_at to determine whether a target appears
at a given stratum.  This new function lets us clean up
find_record_target a bit, and is generally useful.

2014-02-19  Tom Tromey  <tromey@redhat.com>

* record.c (find_record_target): Use find_target_at.
* target.c (find_target_at): New function.
* target.h (find_target_at): Declare.
gdb/ChangeLog
gdb/record.c
gdb/target.c
gdb/target.h