From: Daniel Jacobowitz Date: Wed, 10 Oct 2007 13:28:43 +0000 (+0000) Subject: * target.c (update_current_target): Call setup_target_debug. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b4b61fdbdff81e5d1c3fc66476731951c6c23c6a;p=binutils-gdb.git * target.c (update_current_target): Call setup_target_debug. (push_target): Do not call it here. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8e913f8eb0c..48ab3ad5927 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2007-10-10 Daniel Jacobowitz + + * target.c (update_current_target): Call setup_target_debug. + (push_target): Do not call it here. + 2007-10-09 Michael Snyder * MAINTAINERS: Update my email address. diff --git a/gdb/target.c b/gdb/target.c index c1b8f165f25..356df74f0e1 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -649,6 +649,9 @@ update_current_target (void) "current_target". That way code looking for a non-inherited target method can quickly and simply find it. */ current_target.beneath = target_stack; + + if (targetdebug) + setup_target_debug (); } /* Mark OPS as a running target. This reverses the effect @@ -752,9 +755,6 @@ push_target (struct target_ops *t) update_current_target (); - if (targetdebug) - setup_target_debug (); - /* Not on top? */ return (t != target_stack); }