Running gdb in Cygwin

View: New views
6 Messages — Rating Filter:   Alert me  

Running gdb in Cygwin

by grahamlab :: Rate this Message:

| View Threaded | Show Only this Message

Hello
I am trying to use gdb to download using cygwin
When I enter the command /opt/ecos/gnutools/arm-eabi/bin/arm-eabi-gdb.exe DevBoard_install/tests/io/serial/v3_0/tests/serial3 I get returned to the command prompt straight away
Why is this?
Graham

Re: Running gdb in Cygwin

by John Dallaway-2 :: Rate this Message:

| View Threaded | Show Only this Message

Hi Graham

grahamlab wrote:

> I am trying to use gdb to download using cygwin
> When I enter the command /opt/ecos/gnutools/arm-eabi/bin/arm-eabi-gdb.exe
> DevBoard_install/tests/io/serial/v3_0/tests/serial3 I get returned to the
> command prompt straight away

Make sure that all the Cygwin packages required for eCos are installed. Ref:

   http://ecos.sourceware.org/cygwin.html

John Dallaway

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


Parent Message unknown Re: Running gdb in Cygwin

by John Dallaway-2 :: Rate this Message:

| View Threaded | Show Only this Message

Graham Labdon wrote:

> When installing Cygwin I need to add gcc package

Yes, but there are several other Cygwin packages that you also need to
add, as described at:

  http://ecos.sourceware.org/cygwin.html

Cygwin-hosted GNU tools have been known to fail silently when required
DLLs are not installed.

John Dallaway

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


Re: Running gdb in Cygwin

by John Dallaway-2 :: Rate this Message:

| View Threaded | Show Only this Message

Graham

John Dallaway wrote:

> Graham Labdon wrote:
>
>> When installing Cygwin I need to add gcc package
>
> Yes, but there are several other Cygwin packages that you also need to
> add, as described at:
>
>   http://ecos.sourceware.org/cygwin.html
>
> Cygwin-hosted GNU tools have been known to fail silently when required
> DLLs are not installed.

arm-eabi-gdb.exe requires the following Cygwin DLLs:

  C:\cygwin\bin\cygwin1.dll
  C:\cygwin\bin\cygexpat-1.dll
  C:\cygwin\bin\cygiconv-2.dll
  C:\cygwin\bin\cygintl-8.dll
  C:\cygwin\bin\cygncurses-8.dll
  C:\cygwin\bin\cygz.dll

So if any of these DLLs don't exist in your own Cygwin installation,
that could explain the problem you are observing. If you have installed
all the packages listed on the above page and still don't have all the
DLLs you need, please let me know which one(s) are missing in your
installation.

John Dallaway

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


Parent Message unknown Re: Running gdb in Cygwin

by John Dallaway-2 :: Rate this Message:

| View Threaded | Show Only this Message

Hi Graham

Graham Labdon wrote:

> I have just done a reinstall of cywin and I included all the packages specified.
> There is one missing dll - C:\cygwin\bin\cygexpat-1.dll

I expect this is the problem. Try adding the Cygwin "libexpat1" package
to your installation by re-running the Cygwin setup program (make no
other changes).

Please do let me know if this resolves the issue so I can modify the
installation instructions if necessary.

John Dallaway

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


Parent Message unknown Re: Running gdb in Cygwin

by John Dallaway-2 :: Rate this Message:

| View Threaded | Show Only this Message

Hi Graham

Graham Labdon wrote:

> This did fix the problem of running gdb but now I have some other problems!

Thank you for the confirmation (and independent confirmation from
Bessemer). I have updated the Cygwin installation page on the eCos website.

> I can successfully run the serial tests using ser_filter.

Good.

> However, when I try to run my own program I get an error message that says - invalid ioctl for device.
> The commands I use are
> arm-eabi-gdb -nw a.out
> at the gdb prompt -
> set remotebaud 38400
> target  remote com4

Recent Cygwin uses Linux-like serial device naming. Try:

  (gdb) target remote /dev/ttyS3

John Dallaway

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