From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17506 invoked by alias); 8 Jul 2009 14:27:17 -0000 Received: (qmail 17498 invoked by uid 22791); 8 Jul 2009 14:27:16 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_42,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 08 Jul 2009 14:27:09 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MOY70-0007X0-5Y for gdb-patches@sources.redhat.com; Wed, 08 Jul 2009 14:27:06 +0000 Received: from enigma.qnx.com ([209.226.137.106]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Jul 2009 14:27:06 +0000 Received: from aristovski by enigma.qnx.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Jul 2009 14:27:06 +0000 To: gdb-patches@sources.redhat.com From: Aleksandar Ristovski Subject: [patch] nto-tdep.c - adjust addr_low addr_high Date: Wed, 08 Jul 2009 14:27:00 -0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------080504020008070107080808" User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) X-IsSubscribed: yes 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-07/txt/msg00246.txt.bz2 This is a multi-part message in MIME format. --------------080504020008070107080808 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 248 Hello, This adjusts so->addr_low and so->addr_high for proper "info sahredlibrary" output. Thanks, -- Aleksandar Ristovski QNX Software Systems ChangeLog: * nto-tdep.c (nto_relocate_section_address): Adjust so->addr_low and so->addr_high. --------------080504020008070107080808 Content-Type: text/x-patch; name="nto-tdep.c-addr_low-20090708.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="nto-tdep.c-addr_low-20090708.diff" Content-length: 571 Index: gdb/nto-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/nto-tdep.c,v retrieving revision 1.34 @@ -315,6 +316,10 @@ nto_relocate_section_addresses (struct s sec->addr = nto_truncate_ptr (sec->addr + LM_ADDR (so) - vaddr); sec->endaddr = nto_truncate_ptr (sec->endaddr + LM_ADDR (so) - vaddr); + if (so->addr_low == 0) + so->addr_low = LM_ADDR (so); + if (so->addr_high < sec->endaddr) + so->addr_high = sec->endaddr; } /* This is cheating a bit because our linker code is in libc.so. If we --------------080504020008070107080808--