diff options
author | Daniel Jacobowitz <drow@false.org> | 2007-10-10 13:28:43 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2007-10-10 13:28:43 +0000 |
commit | b4b61fdbdff81e5d1c3fc66476731951c6c23c6a (patch) | |
tree | 16e10ed25d1dacbbe8902e98c478d33ba5b1b060 /gdb/target.c | |
parent | cec9d2f362a9f1c13aad15caed66493463efb674 (diff) | |
download | gdb-b4b61fdbdff81e5d1c3fc66476731951c6c23c6a.zip gdb-b4b61fdbdff81e5d1c3fc66476731951c6c23c6a.tar.gz gdb-b4b61fdbdff81e5d1c3fc66476731951c6c23c6a.tar.bz2 |
* target.c (update_current_target): Call setup_target_debug.
(push_target): Do not call it here.
Diffstat (limited to 'gdb/target.c')
-rw-r--r-- | gdb/target.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/target.c b/gdb/target.c index c1b8f16..356df74 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); } |