QNX630 gdb problems on WinXP host.

Hi,

I want to use gdb to debug my shle target on Windows XP host. I’m able to do
this with QNX621 but the QNX630 gdb gives errors or crashes. Heres the
session on with QNX621:
--------------------------------8<------------------------------------

Just to make sure we are invoking the right gdb

$ type ntosh-gdb
ntosh-gdb is /cygdrive/c/QNXsdk/host/win32/x86/usr/bin/ntosh-gdb

$ ntosh-gdb.exe -b 115200
GNU gdb 5.2.1qnx-nto


This GDB was configured as “–host=i686-pc-cygwin --target=ntosh”.
(gdb) target qnx com1
Remote debugging using com1
The target is assumed to be little endian
Remote target is little-endian
(gdb)
------------------------------>8---------------------------------------

i.e. it works. If I now try the same with QNX630:

--------------------------------8<------------------------------------
$ type ntosh-gdb
ntosh-gdb is /cygdrive/c/QNX630/host/win32/x86/usr/bin/ntosh-gdb

$ ntosh-gdb.exe -b 115200
GNU gdb 5.2.1qnx-nto


This GDB was configured as “–host=i686-pc-cygwin --target=ntosh”.
(gdb) target qnx com1
com1: Not a typewriter.
(gdb) target qnx COM1
Segmentation fault (core dumped)
(gdb)
------------------------------>8---------------------------------------

the system says that com1 is not a typewriter. If I try to use uppercase
letters COM1, gdb crashes. Both commands work fine on QNX621. What could be
the cause here?

Thanks for any help

  • Martin

There has been a change with the Cygwin version we build gdb with. Try
‘target /dev/com1’ and see if that helps.

cheers,

Kris

Martin Nylund wrote:

Hi,

I want to use gdb to debug my shle target on Windows XP host. I’m able to do
this with QNX621 but the QNX630 gdb gives errors or crashes. Heres the
session on with QNX621:
--------------------------------8<------------------------------------

Just to make sure we are invoking the right gdb

$ type ntosh-gdb
ntosh-gdb is /cygdrive/c/QNXsdk/host/win32/x86/usr/bin/ntosh-gdb

$ ntosh-gdb.exe -b 115200
GNU gdb 5.2.1qnx-nto
.
.
This GDB was configured as “–host=i686-pc-cygwin --target=ntosh”.
(gdb) target qnx com1
Remote debugging using com1
The target is assumed to be little endian
Remote target is little-endian
(gdb)
------------------------------>8---------------------------------------

i.e. it works. If I now try the same with QNX630:

--------------------------------8<------------------------------------
$ type ntosh-gdb
ntosh-gdb is /cygdrive/c/QNX630/host/win32/x86/usr/bin/ntosh-gdb

$ ntosh-gdb.exe -b 115200
GNU gdb 5.2.1qnx-nto
.
.
This GDB was configured as “–host=i686-pc-cygwin --target=ntosh”.
(gdb) target qnx com1
com1: Not a typewriter.
(gdb) target qnx COM1
Segmentation fault (core dumped)
(gdb)
------------------------------>8---------------------------------------

the system says that com1 is not a typewriter. If I try to use uppercase
letters COM1, gdb crashes. Both commands work fine on QNX621. What could be
the cause here?

Thanks for any help

  • Martin




    \

Thanks Kris, that did it. I just had to add the “qnx” keyword to the command
(i.e. ‘target qnx /dev/com1’)

  • Martin

“Kris Warkentin” <kewarken@qnx.com> schrieb im Newsbeitrag
news:cb6qk5$psq$1@inn.qnx.com

There has been a change with the Cygwin version we build gdb with. Try
‘target /dev/com1’ and see if that helps.

cheers,

Kris

Martin Nylund wrote:

Hi,

I want to use gdb to debug my shle target on Windows XP host. I’m able
to do
this with QNX621 but the QNX630 gdb gives errors or crashes. Heres the
session on with QNX621:
--------------------------------8<------------------------------------

Just to make sure we are invoking the right gdb

$ type ntosh-gdb
ntosh-gdb is /cygdrive/c/QNXsdk/host/win32/x86/usr/bin/ntosh-gdb

$ ntosh-gdb.exe -b 115200
GNU gdb 5.2.1qnx-nto
.
.
This GDB was configured as “–host=i686-pc-cygwin --target=ntosh”.
(gdb) target qnx com1
Remote debugging using com1
The target is assumed to be little endian
Remote target is little-endian
(gdb)
------------------------------>8---------------------------------------

i.e. it works. If I now try the same with QNX630:

--------------------------------8<------------------------------------
$ type ntosh-gdb
ntosh-gdb is /cygdrive/c/QNX630/host/win32/x86/usr/bin/ntosh-gdb

$ ntosh-gdb.exe -b 115200
GNU gdb 5.2.1qnx-nto
.
.
This GDB was configured as “–host=i686-pc-cygwin --target=ntosh”.
(gdb) target qnx com1
com1: Not a typewriter.
(gdb) target qnx COM1
Segmentation fault (core dumped)
(gdb)
------------------------------>8---------------------------------------

the system says that com1 is not a typewriter. If I try to use uppercase
letters COM1, gdb crashes. Both commands work fine on QNX621. What could
be
the cause here?

Thanks for any help

  • Martin




    \