From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30572 invoked by alias); 29 Jan 2004 04:08:34 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 30551 invoked from network); 29 Jan 2004 04:08:33 -0000 Received: from unknown (HELO gateway.sf.frob.com) (64.81.54.130) by sources.redhat.com with SMTP; 29 Jan 2004 04:08:33 -0000 Received: from magilla.sf.frob.com (magilla.sf.frob.com [198.49.250.228]) by gateway.sf.frob.com (Postfix) with ESMTP id 03D32357B; Wed, 28 Jan 2004 20:08:31 -0800 (PST) Received: from magilla.sf.frob.com (localhost.localdomain [127.0.0.1]) by magilla.sf.frob.com (8.12.9/8.12.9) with ESMTP id i0T48VOi001344; Wed, 28 Jan 2004 20:08:31 -0800 Received: (from roland@localhost) by magilla.sf.frob.com (8.12.9/8.12.9/Submit) id i0T48VrC001340; Wed, 28 Jan 2004 20:08:31 -0800 Date: Thu, 29 Jan 2004 04:08:00 -0000 Message-Id: <200401290408.i0T48VrC001340@magilla.sf.frob.com> From: Roland McGrath To: gdb-patches@sources.redhat.com Subject: hook to run on attach/exec? X-Zippy-Says: Dizzy, are we "REAL PEOPLE" or "AMAZING ANIMALS"? X-SW-Source: 2004-01/txt/msg00734.txt.bz2 I read someone mention somewhere recently that a new hook might be in the works to be the spot where PIE support would figure out where the executable got loaded. Can someone give me the skinny? For vsyscall DSO detection, the hook I need goes at the same place, I think. That is, a spot that gets run after an inferior execs (from "run" or otherwise, skipping first "run" exec for the shell of course) or when gdb attaches to an inferior or to a core dump image; i.e., whenever the inferior's address space is freshly made or presumed to be. Those are the times you need to figure out where a PIE actually resides in memory, and also the times you need to figure out where a system-supplied DSO is. Last time I was looking into the vsyscall DSO support, it seemed like there was no precisely appropriate hook already. But I didn't know exactly what to do about adding one. Is my life easier now? Thanks, Roland