From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17169 invoked by alias); 15 Jun 2009 14:17:15 -0000 Received: (qmail 17158 invoked by uid 22791); 15 Jun 2009 14:17:14 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,MSGID_FROM_MTA_HEADER,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mtagate4.de.ibm.com (HELO mtagate4.de.ibm.com) (195.212.29.153) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 15 Jun 2009 14:17:09 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate4.de.ibm.com (8.14.3/8.13.8) with ESMTP id n5FEH6lM141098 for ; Mon, 15 Jun 2009 14:17:06 GMT Received: from d12av02.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v9.2) with ESMTP id n5FEH60A1556674 for ; Mon, 15 Jun 2009 16:17:06 +0200 Received: from d12av02.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n5FEH5Hw007974 for ; Mon, 15 Jun 2009 16:17:05 +0200 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with SMTP id n5FEH45c007927; Mon, 15 Jun 2009 16:17:04 +0200 Message-Id: <200906151417.n5FEH45c007927@d12av02.megacenter.de.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Mon, 15 Jun 2009 16:17:04 +0200 Subject: Re: [patch] nto target: code cleanup #2 To: aristovski@qnx.com (Aleksandar Ristovski) Date: Mon, 15 Jun 2009 14:17:00 -0000 From: "Ulrich Weigand" Cc: gdb-patches@sources.redhat.com In-Reply-To: from "Aleksandar Ristovski" at Jun 11, 2009 03:50:59 PM MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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/msg00383.txt.bz2 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 -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE Ulrich.Weigand@de.ibm.com