X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fgdbserver%2Ftarget.c;h=a4593cf6df91c1f58951aa17b95d7ddbe0d55cbb;hb=07b76c2f0baf197ce44d66a153184d33047e7ba0;hp=f3887b3e87793993c5874c48c8550ae54a36b69b;hpb=9f01d54aed26f80659a3560ce7d22cf2913a3d68;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/gdbserver/target.c b/gdb/gdbserver/target.c index f3887b3e87..a4593cf6df 100644 --- a/gdb/gdbserver/target.c +++ b/gdb/gdbserver/target.c @@ -22,7 +22,7 @@ #include "tracepoint.h" #include "gdbsupport/byte-vector.h" -struct target_ops *the_target; +process_stratum_target *the_target; int set_desired_thread () @@ -119,7 +119,7 @@ done_accessing_memory (void) /* Restore the previous selected thread. */ cs.general_thread = prev_general_thread; - switch_to_thread (cs.general_thread); + switch_to_thread (the_target, cs.general_thread); } int @@ -284,9 +284,9 @@ start_non_stop (int nonstop) } void -set_target_ops (struct target_ops *target) +set_target_ops (process_stratum_target *target) { - the_target = XNEW (struct target_ops); + the_target = XNEW (process_stratum_target); memcpy (the_target, target, sizeof (*the_target)); }