Lines 493-509
Link Here
|
493 |
make_final_cleanup (gdbtk_cleanup, NULL); |
493 |
make_final_cleanup (gdbtk_cleanup, NULL); |
494 |
|
494 |
|
495 |
if (Tcl_Init (gdbtk_interp) != TCL_OK) |
495 |
if (Tcl_Init (gdbtk_interp) != TCL_OK) |
496 |
error ("Tcl_Init failed: %s", gdbtk_interp->result); |
496 |
error ("Tcl_Init failed: %s", Tcl_GetStringResult(gdbtk_interp)); |
497 |
|
497 |
|
498 |
/* Initialize the Paths variable. */ |
498 |
/* Initialize the Paths variable. */ |
499 |
if (ide_initialize_paths (gdbtk_interp, "") != TCL_OK) |
499 |
if (ide_initialize_paths (gdbtk_interp, "") != TCL_OK) |
500 |
error ("ide_initialize_paths failed: %s", gdbtk_interp->result); |
500 |
error ("ide_initialize_paths failed: %s", Tcl_GetStringResult(gdbtk_interp)); |
501 |
|
501 |
|
502 |
if (Tk_Init (gdbtk_interp) != TCL_OK) |
502 |
if (Tk_Init (gdbtk_interp) != TCL_OK) |
503 |
error ("Tk_Init failed: %s", gdbtk_interp->result); |
503 |
error ("Tk_Init failed: %s", Tcl_GetStringResult(gdbtk_interp)); |
504 |
|
504 |
|
505 |
if (Tktable_Init (gdbtk_interp) != TCL_OK) |
505 |
if (Tktable_Init (gdbtk_interp) != TCL_OK) |
506 |
error ("Tktable_Init failed: %s", gdbtk_interp->result); |
506 |
error ("Tktable_Init failed: %s", Tcl_GetStringResult(gdbtk_interp)); |
507 |
|
507 |
|
508 |
Tcl_StaticPackage (gdbtk_interp, "Tktable", Tktable_Init, |
508 |
Tcl_StaticPackage (gdbtk_interp, "Tktable", Tktable_Init, |
509 |
(Tcl_PackageInitProc *) NULL); |
509 |
(Tcl_PackageInitProc *) NULL); |
Lines 559-565
Link Here
|
559 |
|
559 |
|
560 |
if (Gdbtk_Init (gdbtk_interp) != TCL_OK) |
560 |
if (Gdbtk_Init (gdbtk_interp) != TCL_OK) |
561 |
{ |
561 |
{ |
562 |
error ("Gdbtk_Init failed: %s", gdbtk_interp->result); |
562 |
error ("Gdbtk_Init failed: %s", Tcl_GetStringResult(gdbtk_interp)); |
563 |
} |
563 |
} |
564 |
|
564 |
|
565 |
Tcl_StaticPackage (gdbtk_interp, "Insight", Gdbtk_Init, NULL); |
565 |
Tcl_StaticPackage (gdbtk_interp, "Insight", Gdbtk_Init, NULL); |
Lines 739-745
Link Here
|
739 |
|
739 |
|
740 |
retval = Tcl_Eval (gdbtk_interp, cmd); |
740 |
retval = Tcl_Eval (gdbtk_interp, cmd); |
741 |
|
741 |
|
742 |
result = xstrdup (gdbtk_interp->result); |
742 |
result = xstrdup (Tcl_GetStringResult(gdbtk_interp)); |
743 |
|
743 |
|
744 |
old_chain = make_cleanup (free, result); |
744 |
old_chain = make_cleanup (free, result); |
745 |
|
745 |
|