]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/exec.c
remove using_exec_ops global
authorTom Tromey <tromey@redhat.com>
Sat, 13 Jul 2013 17:19:14 +0000 (11:19 -0600)
committerTom Tromey <tromey@redhat.com>
Fri, 25 Jul 2014 17:10:23 +0000 (11:10 -0600)
commitab16fce80e60f15058b594f624024219c3a7a000
tree89823ac8f43c3fec321b57c83c181847642a418e
parent88056fbbf4fc603517ce2e09c0ee4398ab354836
remove using_exec_ops global

This removes the using_exec_ops global from exec.c, in favor of
querying the target stack directly using target_is_pushed.  This is
more in keeping with other code in gdb, and is also more future-proof
as it is more multi-target-ready.

Built and regtested on x86-64 Fedora 20.

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

* exec.c (using_exec_ops): Remove.
(exec_close_1): Update.  Remove extraneous block, reindent.
(add_target_sections): Use target_is_pushed.
gdb/ChangeLog
gdb/exec.c