This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
Re: No step button using insight w/ remote target.
- From: Keith Seitz <keiths at cygnus dot com>
- To: Grant Edwards <grante at visi dot com>
- Cc: <insight at sources dot redhat dot com>
- Date: Mon, 19 Nov 2001 12:17:35 -0800 (PST)
- Subject: 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