aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-nindy.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/remote-nindy.c')
-rw-r--r--gdb/remote-nindy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/remote-nindy.c b/gdb/remote-nindy.c
index 8c9c624..a85caf0 100644
--- a/gdb/remote-nindy.c
+++ b/gdb/remote-nindy.c
@@ -685,7 +685,8 @@ nindy_before_main_loop ()
char ttyname[100];
char *p, *p2;
- while (current_target != &nindy_ops) { /* remote tty not specified yet */
+ while (target_stack->target_ops != &nindy_ops) /* What is this crap??? */
+ { /* remote tty not specified yet */
if ( instream == stdin ){
printf_unfiltered("\nAttach /dev/ttyNN -- specify NN, or \"quit\" to quit: ");
gdb_flush( gdb_stdout );