From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30144 invoked by alias); 15 Jun 2009 14:35:12 -0000 Received: (qmail 30129 invoked by uid 22791); 15 Jun 2009 14:35:09 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from qnxmail.qnx.com (HELO qnxmail.qnx.com) (209.226.137.76) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 15 Jun 2009 14:35:03 +0000 Received: from Nebula.ott.qnx.com (nebula.ott.qnx.com [10.42.3.30]) by hub.ott.qnx.com (8.9.3/8.9.3) with ESMTP id KAA26577; Mon, 15 Jun 2009 10:34:54 -0400 Received: from [127.0.0.1] ([10.42.100.129]) by Nebula.ott.qnx.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 15 Jun 2009 10:34:58 -0400 Message-ID: <4A365BDC.2060906@qnx.com> Date: Mon, 15 Jun 2009 14:35:00 -0000 From: Aleksandar Ristovski User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Ulrich Weigand CC: gdb-patches@sources.redhat.com Subject: Re: [patch] nto target: code cleanup #2 References: <200906151417.n5FEH45c007927@d12av02.megacenter.de.ibm.com> In-Reply-To: <200906151417.n5FEH45c007927@d12av02.megacenter.de.ibm.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-06/txt/msg00384.txt.bz2 Ulrich Weigand wrote: > Aleksandar Ristovski wrote: > >> * i386-nto-tdep.c (i386nto_init_abi): Remove nto_svr4_so_ops. >> Initialize solib ops direcly and set them. > >> + /* Our loader handles solib relocations differently than svr4. */ >> + svr4_so_ops.relocate_section_addresses = nto_relocate_section_addresses; > > Sorry, this is not correct. > > The SVR4 operations must remain unchanged. For example, you might want to > debug both native Linux (using SVR4 solib ops) and remote NTO (using the NTO > solib ops) in a single GDB session -- if the NTO code clobbers the SVR4 ops, > this won't be possible. > > Bye, > Ulrich > Ok, thanks. I guess I really must start working with gdb configured for linux/nto. Thanks, Aleksandar