No step button using insight w/ remote target.

Keith Seitz keiths@cygnus.com
Wed Oct 3 09:37:00 GMT 2001


On Mon, 19 Nov 2001, Grant Edwards wrote:

> (gdb) tk set ::gdb_running
> 0

Of course. This is the problem of the problem. The toolbar buttons get
activated when gdb_running is non-zero...

> (gdb) tk gdb_target_has_execution
> 0

A ha! So this is the cause of your problems. gdb_target_has_execution does
not think that the inferior is running...

static int
gdb_target_has_execution_command (clientData, interp, objc, objv)
     ClientData clientData;
     Tcl_Interp *interp;
     int objc;
     Tcl_Obj *CONST objv[];
{
  int result = 0;

  if (target_has_execution && ! ptid_equal (inferior_ptid, null_ptid))
    result = 1;

  Tcl_SetBooleanObj (result_ptr->obj_ptr, result);
  return TCL_OK;
}

So we've got: target_has_execution is 0 and/or inferior_ptid is null_ptid.

Can you break in this function and find out what the case is?

Keith




More information about the Insight mailing list