From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Lewin A.R.W. Edwards" To: ecos-discuss@sourceware.cygnus.com Subject: [ECOS] gdb/insight questions Date: Tue, 05 Dec 2000 06:26:00 -0000 Message-id: <4.3.2.7.2.20001204221133.00abd9b0@larwe.com> X-SW-Source: 2000-12/msg00052.html Well, practically everything works - I can compile apps, I can connect to the target board and I can load programs. I have a couple of gdb questions though. Q1: I don't understand where console I/O goes by default; I would have assumed to the gdb console but it seems not? My hello world app has a printf in it; by default, where does this output go? Can someone please verify to me that this is the right process: * compile * arm-elf-gdb -nw a.out * (gdb) set remotebaud 38400 * (gdb) target remote com1 * (gdb) load * (gdb) continue I also tried enabling serial port 2 and fprintfing a message to /dev/ttys2 or whatever it is, and I get my output message on the second port so the program is definitely running (yay!). Q2: (Relatively minor) I can only run command-line gdb, not insight. I even tried recompiling insight but when I run it I get an MB_ICONSTOP messagebox that says: Can't find a usable main.tcl in the following directories: C:/CYGWIN/TOOLS/share/gdbctl C:/CYGWIN/TOOLS/gdbtcl C:/CYGWIN/TOOLS/gdb/gdbtk/library C:/CYGWIN/TOOLS/gdb1.0/gdbtk/library C:/CYGWIN/TOOLS/share/gdbtcl/main.tcl: can't read "errMsg": no such variable can't read "errMsg": no such variable while executing "tk_messageBox -title Error -message "Could not find the lwidgets libraries. Got nameofexec: [info nameofexecutable] Error(s) were :\n$errMsg" -icon e..." invoked from within "if {![find_iwidgets_library]} { tk_messageBox.................... (lots more stuff). I can run native insight with no problems. === Lewin A.R.W. Edwards (Embedded Engineer) Work: http://www.digi-frame.com/ Personal: http://www.zws.com/ and http://www.larwe.com/