public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* Insight 5.0 won't start after a remote target added
@ 2002-03-18 15:42 Chien-Yu Lin
  2002-03-18 16:31 ` Keith Seitz
  0 siblings, 1 reply; 2+ messages in thread
From: Chien-Yu Lin @ 2002-03-18 15:42 UTC (permalink / raw)
  To: insight

Hello,
I was working on adding a remote debug target to arm-elf-gdb.
It connects a customerized board with ARM7 JTAG port and my host.
I added the files into gdb Makefile and compiled it.
It works fine with command mode gdb (arm-elf-gdb -nw) and also ddd
(ddd -gdb --debugger arm-elf-gdb), but now I have problem starting
Insight version 5.0. The error message is like this:
-------------------------------------------------------------------------
Can't find a usable main.tcl in the following directories:
    /tools/share/gdbtcl /tool2/gdbtcl /tools/gdb/gdbtk/library
/tools/gdb1.0/gdbtk/library

    /tools/share/gdbtcl/main.tcl: invalid command name "find_iwidgets_library"
    invalid command name "find_iwidgets_library"
        while executing
        "find_iwidgets_library"
            (file "/tools/share/gdbtcl/main.tcl" line 53)
                invoked from within
                "source /tools/share/gdbtcl/main.tcl"
                    ("uplevel" body line 1)
                        invoked from within
                        "uplevel \#0 [list source $file]"


                        This probably means that gdb wasn't installed properly.

                            while executing
                            "error $msg"
                                (procedure "tcl_findLibrary" line 84)
                                    invoked from within
                                    "tcl_findLibrary gdb 1.0 {} main.tcl
GDBTK_LIBRARY GDBTK_LIBRARY gdbtk/library gdbtcl {} $debug_startup"
                                        (procedure "gdbtk_find_main" line 11)
                                            invoked from within
                                            "gdbtk_find_main"
                                            Segmentation fault (core dumped)
----------------------------------------------------------------------------
I wasn't sure what caused this error. I added 3 object files in the Makefile
TDEPFILES section and didn't modify any other gdb sources. Everything is back
to normal if I remove my target object files in Makefile. The OS is RedHat
Linux 7.1. Can someone help me?
Thanks a lot!!
Regards,

Chien-Yu


__________________________________________________
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Insight 5.0 won't start after a remote target added
  2002-03-18 15:42 Insight 5.0 won't start after a remote target added Chien-Yu Lin
@ 2002-03-18 16:31 ` Keith Seitz
  0 siblings, 0 replies; 2+ messages in thread
From: Keith Seitz @ 2002-03-18 16:31 UTC (permalink / raw)
  To: Chien-Yu Lin; +Cc: insight

On Mon, 18 Mar 2002, Chien-Yu Lin wrote:

> Can't find a usable main.tcl in the following directories:
>     /tools/share/gdbtcl /tool2/gdbtcl /tools/gdb/gdbtk/library
> /tools/gdb1.0/gdbtk/library
>
>     /tools/share/gdbtcl/main.tcl: invalid command name "find_iwidgets_library"
>     invalid command name "find_iwidgets_library"

This is very suspicious. According to this, "find_iwidgets_library" is not
found. It should be in util.tcl.

Some things to investigate:
1) Why is it crashing?
2) What happened to find_iwidgets_library?
3) Try setting GDBTK_DEBUGFILE (see main.tcl)

I would not expect that just adding objfiles to gdb to cause this kind of
error.

Keith


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-03-19  0:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-18 15:42 Insight 5.0 won't start after a remote target added Chien-Yu Lin
2002-03-18 16:31 ` Keith Seitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).