AR# 18703

|

10.1 EDK - Unable to launch GDB; an error message occurs: "Cannot find a usable main.tcl"

描述

When I try to launch GDB from within an XPS project (i.e., Debug -> Launch software debugger), it fails to launch the GNU debugger. This problem occurs for various projects, and the following error message appears:

"Can't find a usable main.tcl in the following directories......"

The tools proceed to list a number of directories in the GDB install directory of EDK:

%Xilinx_EDK%\gnu\powerpc-eabi\nt\share\insight1.0

解决方案

The GDB initialization files no longer match the current setup.

The following are possible resolutions for this problem.

You can still launch the debugger from a Cygwin shell because the Cygwin shell does not use the GDB initialization files:

1. In XPS, select the Project pull-down menu and select "Launch EDK shell."

2. In the Cygwin shell, enter:

powerpc-eabi-gdb -nx

You can delete the initialization files so that GDB can be launched from the GUI:

1. Open a Cygwin shell.

2. Enter the command:

cd $HOME

3. Enter the command:

rm gdbtk.ini

Some home directories contain .gdb* files that can also be removed.

XMD/GDB rely on Tcl. Other software tools that set the TCL_LIBRARY and TK_LIBRARY environment variables can cause GDB to behave improperly. You can remove or change the TCL_LIBRARY and TK_LIBRARY environment variables.

AR# 18703
日期 12/15/2012
状态 Archive
Type 综合文章
People Also Viewed