From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25607 invoked by alias); 24 May 2005 15:53:35 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 25486 invoked by uid 22791); 24 May 2005 15:53:24 -0000 Received: from qnxmail.qnx.com (HELO nimbus.ott.qnx.com) (209.226.137.76) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Tue, 24 May 2005 15:53:24 +0000 Received: from [10.42.102.103] (MOJOJOJO [10.42.102.103]) by nimbus.ott.qnx.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id LFXZF4M1; Tue, 24 May 2005 11:53:18 -0400 Message-ID: <42934E3E.100@qnx.com> Date: Tue, 24 May 2005 15:53:00 -0000 From: Kris Warkentin User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) MIME-Version: 1.0 To: =?ISO-8859-1?Q?Ion_Gazta=F1aga?= CC: Daniel Jacobowitz , gdb@sources.redhat.com Subject: Re: Error building qnx cross-gdb 6.3 References: <000b01c5601d$2ff04240$0a001aac@amd1ghzwinxp> In-Reply-To: <000b01c5601d$2ff04240$0a001aac@amd1ghzwinxp> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-SW-Source: 2005-05/txt/msg00304.txt.bz2 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 > >