From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5968 invoked by alias); 10 Oct 2011 02:32:15 -0000 Received: (qmail 5960 invoked by uid 22791); 10 Oct 2011 02:32:14 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-ey0-f175.google.com (HELO mail-ey0-f175.google.com) (209.85.215.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 10 Oct 2011 02:31:58 +0000 Received: by eyd9 with SMTP id 9so448773eyd.20 for ; Sun, 09 Oct 2011 19:31:57 -0700 (PDT) MIME-Version: 1.0 Received: by 10.14.0.10 with SMTP id 10mr1376519eea.157.1318213915150; Sun, 09 Oct 2011 19:31:55 -0700 (PDT) Received: by 10.14.47.9 with HTTP; Sun, 9 Oct 2011 19:31:55 -0700 (PDT) In-Reply-To: <4E8A1D11.3070006@qnx.com> References: <4E847A11.6080800@redhat.com> <4E8A1D11.3070006@qnx.com> Date: Mon, 10 Oct 2011 02:32:00 -0000 Message-ID: Subject: Re: patch: solib_break from _r_debug.r_brk From: Daniel Jacobowitz To: Aleksandar Ristovski Cc: Tom Tromey , gdb-patches@sources.redhat.com Content-Type: text/plain; charset=ISO-8859-1 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: 2011-10/txt/msg00247.txt.bz2 On Mon, Oct 3, 2011 at 4:37 PM, Aleksandar Ristovski wrote: > Tom, thanks for looking into this, but I have meanwhile done further testing > on gnu/linux and uncovered that it is not worth pursuing. While it works for > us, it doesn't on gnu/linux and I am not sure it can be made generic enough > to defend it: http://sourceware.org/ml/gdb-patches/2011-10/msg00043.html FWIW (not much), I looked into this area a year ago also. I thought I'd posted a patch to use r_debug, but maybe not... Solaris does something clever in which unrelocated values are available at link time, so the debugger can pick them up right away - as long as it can tell if they've been relocated, I guess. Linux just fills in zero when it has the right value. -- Thanks, Daniel