the event notification.
(gdbtk_delete_tracepoints): Ditto for tracepoints.
+ * generic/gdbtk-cmds.c (gdb_entry_point): Return an empty
+ string when there is no active target (i.e., there is no
+ entry point to return yet).
+
2001-04-20 Keith Seitz <keiths@cygnus.com>
* library/srctextwin.ith (handle_set_hook): Rename to set_variable.
{
char *addrstr;
- addrstr = paddr_nz (entry_point_address ());
- Tcl_SetStringObj (result_ptr->obj_ptr, addrstr, -1);
+ /* 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)
+ {
+ addrstr = paddr_nz (entry_point_address ());
+ Tcl_SetStringObj (result_ptr->obj_ptr, addrstr, -1);
+ }
+ else
+ Tcl_SetStringObj (result_ptr->obj_ptr, "", -1);
+
return TCL_OK;
}