This is the mail archive of the
insight@sourceware.org
mailing list for the Insight project.
Re: no insight executable built with target=arm-elf (mingw and ubuntu)
Eric Weddington wrote:
Are you using mingw or Cygwin? You cannot build/run Insight or gdb on
mingw (at least that was true the last time I looked at it).
Officially,
mingw is not a supported platform (although I have heard of people
making having various degrees of success making it work).
That's not exactly true, Keith.
I can build GDB host=mingw target=avr for 6.5. I assume 6.6 works, though I
haven't tried it yet. AFAIK, support for host=mingw was put into the GDB
repo in 6.5.
Insight also builds (same configuration), though I also ran into the issue
that it didn't produce an avr-insight executable. Dave Murphy (CCed) gave me
a patch that fixed it up, though the patch has a bunch of other stuff too.
This discussion is in the insight archives in the April 2007 time frame.
I have Insight 6.6. building with MinGW now for several targets
including native. I'd like to submit the patches once they're cleaned up
a bit - right now my patchset includes pieces for gdb as well as Insight.
Recently I had the opportunity to test debugging over a serial port for
an arm-eabi target and found that the Insight GUI failed for this
option. It turns out that the code which fills the drop down with
available ports uses /dev/com<x> format which works in cygwin but not
when compiled with MinGW where COM<x> is required instead.
Is it reasonable to replace the /dev/com parts with COM or should I
check for cygwin and retain /dev/com there?
I've attached this part of my local patch so you can see what I mean.
Dave Murphy
diff -Nbaur insight-6.6/gdb/gdbtk/library/targetselection.itb insight-6.6-mingw/gdb/gdbtk/library/targetselection.itb
--- insight-6.6/gdb/gdbtk/library/targetselection.itb Fri Dec 8 04:16:39 2006
+++ insight-6.6-mingw/gdb/gdbtk/library/targetselection.itb Fri Jun 8 03:06:28 2007
@@ -76,7 +76,7 @@
set gdb_target(sds,pretty-name) "SDS"
set gdb_target(sds,defbaud) "38400"
set gdb_target(sds,baud-rates) {9600 38400}
- set gdb_target(sds,cmd) "sds com1"
+ set gdb_target(sds,cmd) "sds COM1"
set gdb_target(sds,runlist) {1 1 0 1}
set gdb_target(sds,after_attaching) {}
@@ -93,7 +93,7 @@
set gdb_target(remote,pretty-name) "Remote/Serial"
set gdb_target(remote,defbaud) "9600"
set gdb_target(remote,baud-rates) {9600 19200 38400 57600 115200}
- set gdb_target(remote,cmd) "remote com1"
+ set gdb_target(remote,cmd) "remote COM1"
set gdb_target(remote,runlist) {1 1 0 1}
set gdb_target(remote,after_attaching) {}
set gdb_target(remotetcp,pretty-name) "Remote/TCP"
@@ -107,7 +107,7 @@
set gdb_target(rdi,pretty-name) "ARM Angel/Serial"
set gdb_target(rdi,defbaud) "9600"
set gdb_target(rdi,baud-rates) {9600 19200 38400 57600 115200}
- set gdb_target(rdi,cmd) "rdi com1"
+ set gdb_target(rdi,cmd) "rdi COM1"
set gdb_target(rdi,runlist) {1 1 0 1}
set gdb_target(rdi,after_attaching) {}
@@ -123,7 +123,7 @@
set gdb_target(rdp,pretty-name) "ARM Remote/Serial"
set gdb_target(rdp,defbaud) "9600"
set gdb_target(rdp,baud-rates) {9600}
- set gdb_target(rdp,cmd) "rdp com1"
+ set gdb_target(rdp,cmd) "rdp COM1"
set gdb_target(rdp,runlist) {1 1 0 1}
set gdb_target(rdp,after_attaching) {}
set gdb_target(rdptcp,pretty-name) "ARM Remote/TCP"
@@ -137,7 +137,7 @@
set gdb_target(m32r,pretty-name) "M32R/Serial"
set gdb_target(m32r,defbaud) "9600"
set gdb_target(m32r,baud-rates) {9600}
- set gdb_target(m32r,cmd) "m32r com1"
+ set gdb_target(m32r,cmd) "m32r COM1"
set gdb_target(m32r,runlist) {1 1 0 1}
set gdb_target(m32r,after_attaching) {}
set gdb_target(m32rtcp,pretty-name) "M32R/TCP"
@@ -151,7 +151,7 @@
set gdb_target(mon2000,pretty-name) "MON2000/Serial"
set gdb_target(mon2000,defbaud) "9600"
set gdb_target(mon2000,baud-rates) {9600}
- set gdb_target(mon2000,cmd) "mon2000 com1"
+ set gdb_target(mon2000,cmd) "mon2000 COM1"
set gdb_target(mon2000,runlist) {1 1 0 1}
set gdb_target(mon2000,after_attaching) {}
set gdb_target(mon2000tcp,pretty-name) "MON2000/TCP"
@@ -165,7 +165,7 @@
set gdb_target(sparclite,pretty-name) "SPARClite/Serial"
set gdb_target(sparclite,defbaud) "9600"
set gdb_target(sparclite,baud-rates) {9600}
- set gdb_target(sparclite,cmd) "sparclite com1"
+ set gdb_target(sparclite,cmd) "sparclite COM1"
set gdb_target(sparclite,runlist) {1 1 0 1}
set gdb_target(sparclite,after_attaching) {}
set gdb_target(sparclitetcp,pretty-name) "SPARClite/TCP"
@@ -187,7 +187,7 @@
set gdb_target(mips,pretty-name) "MIPS/Serial"
set gdb_target(mips,defbaud) "9600"
set gdb_target(mips,baud-rates) {9600}
- set gdb_target(mips,cmd) "mips com1"
+ set gdb_target(mips,cmd) "mips COM1"
set gdb_target(mips,runlist) {1 1 0 1}
set gdb_target(mips,after_attaching) {}
set gdb_target(mipstcp,pretty-name) "MIPS/TCP"
@@ -201,7 +201,7 @@
set gdb_target(pmon,pretty-name) "PMON/Serial"
set gdb_target(pmon,defbaud) "9600"
set gdb_target(pmon,baud-rates) {9600 19200 38400}
- set gdb_target(pmon,cmd) "pmon com1"
+ set gdb_target(pmon,cmd) "pmon COM1"
set gdb_target(pmon,runlist) {1 1 0 1}
set gdb_target(pmon,after_attaching) {}
set gdb_target(pmontcp,pretty-name) "PMON/TCP"
@@ -215,7 +215,7 @@
set gdb_target(ddb,pretty-name) "DDB/Serial"
set gdb_target(ddb,defbaud) "19200"
set gdb_target(ddb,baud-rates) {9600 19200 38400}
- set gdb_target(ddb,cmd) "ddb com1"
+ set gdb_target(ddb,cmd) "ddb COM1"
set gdb_target(ddb,runlist) {1 1 0 1}
set gdb_target(ddb,after_attaching) {}
set gdb_target(ddbtcp,pretty-name) "DDB/TCP"
@@ -229,7 +229,7 @@
set gdb_target(picobug,pretty-name) "Picobug/Serial"
set gdb_target(picobug,defbaud) "19200"
set gdb_target(picobug,baud-rates) {19200}
- set gdb_target(picobug,cmd) "picobug com1"
+ set gdb_target(picobug,cmd) "picobug COM1"
set gdb_target(picobug,runlist) {1 1 0 1}
set gdb_target(picobug,after_attaching) {}
set gdb_target(picobugtcp,pretty-name) "Picobug/TCP"
@@ -243,7 +243,7 @@
set gdb_target(cisco,pretty-name) "Cisco/Serial"
set gdb_target(cisco,defbaud) "38400"
set gdb_target(cisco,baud-rates) {9600 19200 38400 56000}
- set gdb_target(cisco,cmd) "cisco com1"
+ set gdb_target(cisco,cmd) "cisco COM1"
set gdb_target(cisco,runlist) {1 0 0 0}
set gdb_target(cisco,after_attaching) "set os cisco"
set gdb_target(ciscotcp,pretty-name) "Cisco/TCP"
@@ -266,7 +266,7 @@
set gdb_target(gdbserver,pretty-name) "GDBserver/Serial"
set gdb_target(gdbserver,defbaud) "9600"
set gdb_target(gdbserver,baud-rates) {9600 19200 38400 57600 115200}
- set gdb_target(gdbserver,cmd) "remote com1"
+ set gdb_target(gdbserver,cmd) "remote COM1"
set gdb_target(gdbserver,runlist) {1 0 0 1}
set gdb_target(gdbserver,after_attaching) {}
set gdb_target(gdbservertcp,pretty-name) "GDBserver/TCP"
@@ -280,7 +280,7 @@
itcl::body TargetSelection::default_port {} {
global tcl_platform
switch -regexp $tcl_platform(os) {
- Windows { set port com1 }
+ Windows { set port COM1 }
Linux { set port /dev/ttyS0 }
SunOS { set port /dev/ttya }
AIX { set port /dev/foo1 }
@@ -885,7 +885,7 @@
# Failed. Find out why.
if {[string first "permission denied" $msg] != -1} {
# Port is there, but busy right now. That's OK.
- lappend plist /dev/com$i
+ lappend plist COM$i
} elseif {$i > 4} {
# if we've scanned the first 4 ports, then quit when we find no more
set quit 1
@@ -893,7 +893,7 @@
} else {
# We got it. Now close it and add to list.
close $fd
- lappend plist /dev/com$i
+ lappend plist COM$i
}
}
return $plist