This is the mail archive of the insight@sources.redhat.com mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: No step button using insight w/ remote target.


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]