-Subproject commit 425050ff8dd355e315fa612f25c9588f9cd55a1a
+Subproject commit 11859c310cd6b6fd892337a5ee1d36921e6d08d8
/* Tcl/Tk command definitions for Insight.
- Copyright (C) 1994-2017 Free Software Foundation, Inc.
+ Copyright (C) 1994-2018 Free Software Foundation, Inc.
Written by Stu Grossman <grossman@cygnus.com> of Cygnus Support.
Substantially augmented by Martin Hunt, Keith Seitz & Jim Ingham of
}
gdbtk_delete_all_breakpoints ();
- exec_file_clear (0);
+ exec_close ();
symbol_file_clear (0);
return TCL_OK;
gdbtk_force_detach = 1;
}
else
- {
- if (NULL != (void (*) (void)) current_target.to_stop)
- target_stop (gdbtk_get_ptid ());
- else
- set_quit_flag (); /* hope something sees this */
- }
+ target_stop (gdbtk_get_ptid ());
return TCL_OK;
}
/* If we have not yet loaded an exec file, then we have no
entry point, so return an empty string.*/
- if ((int) current_target.to_stratum > (int) dummy_stratum)
+ if ((int) target_stack->to_stratum > (int) dummy_stratum)
{
addrstr = (char *)core_addr_to_string (entry_point_address ());
Tcl_SetStringObj (result_ptr->obj_ptr, addrstr, -1);
mptr = cptr = mbuf;
/* Dispatch memory reads to the topmost target, not the flattened
- current_target. */
- rnum = target_read (current_target.beneath, TARGET_OBJECT_MEMORY, NULL,
+ current target. */
+ rnum = target_read (target_stack->beneath, TARGET_OBJECT_MEMORY, NULL,
mbuf, addr, nbytes);
if (rnum <= 0)
{
#endif
}
- if (target_should_use_timer (¤t_target))
+ if (target_should_use_timer (target_stack))
{
if (!gdbtk_timer_going)
{
int
target_is_native (struct target_ops *t)
{
- const char *name = t->to_shortname;
+ const char *name = t->shortname ();
if (strcmp (name, "exec") == 0 || strcmp (name, "hpux-threads") == 0
|| strcmp (name, "child") == 0 || strcmp (name, "procfs") == 0
;;
i[[3456789]]86-w64-mingw*)
;;
-@@ -1114,13 +1099,13 @@ case "${target}" in
+@@ -1118,13 +1103,13 @@ case "${target}" in
;;
powerpc*-*-winnt* | powerpc*-*-pe*)
target_configdirs="$target_configdirs target-winsup"
;;
powerpc-*-beos*)
noconfigdirs="$noconfigdirs gdb"
-@@ -2702,7 +2687,7 @@ if echo " ${target_configdirs} " | grep
+@@ -2706,7 +2691,7 @@ if echo " ${target_configdirs} " | grep
esac
fi
# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
# and in that case we want gdb to be built without tk. Ugh!
# In fact I believe gdb is the *only* package directly dependent on tk,
-@@ -2710,7 +2695,7 @@ fi
+@@ -2714,7 +2699,7 @@ fi
# leave out the maybe dependencies when enable_gdbtk is false. I'm not
# 100% sure that that's safe though.