From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3196 invoked by alias); 5 Jul 2010 17:18:35 -0000 Received: (qmail 3185 invoked by uid 22791); 5 Jul 2010 17:18:34 -0000 X-SWARE-Spam-Status: No, hits=0.7 required=5.0 tests=AWL,BAYES_00,KAM_STOCKTIP X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 05 Jul 2010 17:18:26 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 2972F2BAC50; Mon, 5 Jul 2010 13:18:24 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id itMLRpueoSs4; Mon, 5 Jul 2010 13:18:24 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id EC1892BAC4B; Mon, 5 Jul 2010 13:18:23 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 87E10F5895; Mon, 5 Jul 2010 10:18:10 -0700 (PDT) Date: Mon, 05 Jul 2010 17:18:00 -0000 From: Joel Brobecker To: Jan Kratochvil Cc: gdb-patches@sourceware.org Subject: Re: ping: [patch 3/6] PIE: Fix occasional error attaching i686 binary Message-ID: <20100705171810.GA2595@adacore.com> References: <20100329161730.GB2940@host0.dyn.jankratochvil.net> <20100609150841.GC7183@host0.dyn.jankratochvil.net> <20100629185413.GT2595@adacore.com> <20100704101806.GC6875@host0.dyn.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100704101806.GC6875@host0.dyn.jankratochvil.net> User-Agent: Mutt/1.5.20 (2009-06-14) 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: 2010-07/txt/msg00079.txt.bz2 > gdb/ > 2010-07-04 Jan Kratochvil > Joel Brobecker > > * auxv.c (memory_xfer_auxv): Update attach comment. > * solib-svr4.c (svr4_special_symbol_handling): Remove the call to > svr4_relocate_main_executable. > (svr4_solib_create_inferior_hook): Make the call to > svr4_relocate_main_executable unconditional. > > gdb/testsuite/ > 2010-07-04 Jan Kratochvil > > * gdb.base/attach-pie-misread.exp, gdb.base/attach-pie-misread.c: New. > * gdb.base/break-interp.exp (reach, test_core, test_ld): Require each > displacement message exactly once. OK - just one ooopsie: > --- a/gdb/auxv.c > +++ b/gdb/auxv.c > @@ -209,7 +209,14 @@ memory_xfer_auxv (struct target_ops *ops, > > /* ld_so_xfer_auxv is the only function safe for virtual executables being > executed by valgrind's memcheck. As using ld_so_xfer_auxv is problematic > - during inferior startup GDB does call it only for attached processes. */ > + during inferior startup as ld.so symbol tables are not yet relocated GDB > + calls ld_so_xfer_auxv only for attached processes. */ > + > + /* ld_so_xfer_auxv is the only function safe for virtual executables being > + executed by valgrind's memcheck. Using ld_so_xfer_auxv during inferior > + startup is problematic, because ld.so symbol tables have not yet been > + relocated. So GDB uses this function only when attaching to a process. > + */ You forgot to remove the old version of the comment. :-) -- Joel