This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GDB Serial and Cygwin Version


It is a while ago for me, so maybe it doesn't apply anymore, but try changing
all references of 'com0' to '/dev/ttyS0' in the file  '\usr\local\share\insight1.0\targetselection.itb'. My changed file
contains the following lines:

set gdb_target(remote,cmd) "remote /dev/ttyS0"
Linux   { set port /dev/ttyS0 }
Linux { set ports [list /dev/cua0 /dev/ttyS0 /dev/ttyS1 /dev/ttyS2 /dev/ttyS3]}

and the following function to speed things up under windows:

# ------------------------------------------------------------------
#  METHOD:  port_list - return a list of valid ports for Windows
# ------------------------------------------------------------------
itcl::body TargetSelection::port_list {} {
  set plist "COM1 COM2"
  return $plist
}

I hope this helps,

Eric.


----- Original Message ----- 
From: "Tony Butt" <tjb@cea.com.au>
To: <ecos-discuss@sources.redhat.com>
Sent: Monday, May 10, 2004 5:35 AM
Subject: [ECOS] GDB Serial and Cygwin Version


I have encountered a problem using gdb down a serial port with any PC
running any version 1.5.x of Cygwin.

The problem occurs as shown here:
<snip>
(gdb) target remote com1
com1: Not a typewriter.
(gdb)
<snip>

If I use a prior version of Cygwin (1.3.x), everything is fine.

This occurs both under the gdb in the eCosCentric released toolkit, and my
own Version 6.1 gdb, built under cygwin 1.5.8

Does anyone know if there is a workaround or fix to solve this, other than
reverting to Vygwin v 1.3.something?



Tony Butt


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]