Re: Error building qnx cross-gdb 6.3

Kris Warkentin
2005-05-24T15:53:35Z

You're going into somewhat uncharted territories here. We _DO_ cross
compile gdb targetting qnx but the GNU cvs doesn't have all the files
yet for remote debugging. It only has self-hosted, i386 targetting.

If you would like a drop of the full port of the sources, go to
http://www.qnx.com/download/group.html?programid=11358 and you can find
compiled binaries and source for gdb-6.2.1. You may need to create a
free myQNX account.

I also have 6.3.0 sources if you would like them. For what it's worth,
I build gdb under cygwin with 'configure --disable-sim --disable-nls
--disable-gdbtk --target=i386-nto'

cheers,

Kris

Ion GaztaÃ±aga wrote:

>Hello again,
>
> I've retried to cross-compile gdb with cygwin host and
>i386-pc-nto-qnx6.3.0
>target. This time with --disable-nls. The remote-nto error was there of
>course, but after removing that from Makefile, all compilation was
>successul
>with these warnings:
>
>Info: resolving _LINES by linking to __imp__LINES (auto-import)
>Info: resolving _COLS by linking to __imp__COLS (auto-import)
>Info: resolving _stdscr by linking to __imp__stdscr (auto-import)
>Info: resolving _curscr by linking to __imp__curscr (auto-import)
>Info: resolving _LINES by linking to __imp__LINES (auto-import)
>Info: resolving _COLS by linking to __imp__COLS (auto-import)
>Info: resolving _stdscr by linking to __imp__stdscr (auto-import)
>Info: resolving _curscr by linking to __imp__curscr (auto-import)
>
>Anyway the created and installed i386-pc-nto-qnx6.3.0-gdb.exe file
>(6.563KB)
>does not work:
>
>igaztanaga@ion /tools/i386-pc-nto-qnx6.3.0/bin
>$ ./i386-pc-nto-qnx6.3.0-gdb.exe
>Segmentation fault (core dumped)
>
>The created i386-pc-nto-qnx6.3.0-gdb.exe.stackdump was:
>
>Exception: STATUS_ACCESS_VIOLATION at eip=0042012D
>eax=00000039 ebx=00000039 ecx=00000000 edx=00000039 esi=61782CD8
>edi=00000001
>ebp=0022ECE8 esp=0022ECE4
>program=C:\cygwin\tools\i386-pc-nto-qnx6.3.0\bin\i386-pc-nto-qnx6.3.0-gd
>b.exe,
>pid 920, thread main
>cs=001B ds=0023 es=0023 fs=003B gs=0000 ss=0023
>Stack trace:
>Frame Function Args
>0022ECE8 0042012D (00000039, 00000000, 0062A650, 005E122C)
>0022ED28 004E0F60 (61782CD8, 00000000, 0022ED48, 00403DB6)
>0022ED38 00425F89 (006283B0, 00000400, 0022EE98, 00401616)
>0022ED48 00403DB6 (61782D00, 61782CD8, 0058E0E2, 00583000)
>0022EE98 00401616 (0022F050, 0022F060, 0022EFD8, 004020F5)
>0022EEA8 00402281 (005834D0, 0022F010, 0022EFB4, 00000000)
>0022EFD8 004020F5 (00402270, 005834D0, 0022F010, 0022F008)
>0022F018 004022E0 (00401110, 0022F050, 0058E0E2, 00000006)
>0022F038 00401DF3 (0022F050, 00000754, 0022F068, 6109106A)
>0022F068 004010AA (00000001, 61782CD8, 101000A8, 0022F0C0)
>0022F0A8 61005F34 (0022F0C0, 7C920833, 77D197E4, 77D19812)
>0022FF88 6100614B (00000000, 00000000, 00000000, 00000000)
>End of stack trace
>
>Thanks and regards,
>
>Ion
>
>