+2004-10-08 Andrew Cagney <cagney@gnu.org>
+
+ * target.c (debug_target): Move to near start of file.
+ (target_stopped_data_address_p): Re-org logic, add casts.
+
2004-10-02 Mark Kettenis <kettenis@gnu.org>
* solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
static void init_dummy_target (void);
+static struct target_ops debug_target;
+
static void debug_to_open (char *, int);
static void debug_to_close (int);
int
target_stopped_data_address_p (struct target_ops *target)
{
- if (target->to_stopped_data_address == return_zero
- || (target->to_stopped_data_address == debug_to_stopped_data_address
- && debug_target.to_stopped_data_address == return_zero))
+ if (target->to_stopped_data_address
+ == (int (*) (struct target_ops *, CORE_ADDR *)) return_zero)
return 0;
- else
- return 1;
+ if (target->to_stopped_data_address == debug_to_stopped_data_address
+ && (debug_target.to_stopped_data_address
+ == (int (*) (struct target_ops *, CORE_ADDR *)) return_zero))
+ return 0;
+ return 1;
}
#endif
dummy_target.to_magic = OPS_MAGIC;
}
\f
-
-static struct target_ops debug_target;
-
static void
debug_to_open (char *args, int from_tty)
{