From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26308 invoked by alias); 1 Oct 2007 01:47:58 -0000 Received: (qmail 26298 invoked by uid 22791); 1 Oct 2007 01:47:57 -0000 X-Spam-Check-By: sourceware.org Received: from eastrmmtao105.cox.net (HELO eastrmmtao105.cox.net) (68.230.240.47) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 01 Oct 2007 01:47:53 +0000 Received: from eastrmimpo01.cox.net ([68.1.16.119]) by eastrmmtao105.cox.net (InterMail vM.7.08.02.01 201-2186-121-102-20070209) with ESMTP id <20071001014750.HBYH23415.eastrmmtao105.cox.net@eastrmimpo01.cox.net>; Sun, 30 Sep 2007 21:47:50 -0400 Received: from [192.168.1.2] ([72.209.132.209]) by eastrmimpo01.cox.net with bizsmtp id upnq1X0034XDoTs0000000; Sun, 30 Sep 2007 21:47:50 -0400 Message-ID: <470051C5.7040207@wichita.edu> Date: Mon, 01 Oct 2007 01:47:00 -0000 From: "Rodney M. Bates" User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050322) MIME-Version: 1.0 To: Daniel Jacobowitz CC: gdb@sourceware.org Subject: Re: Where to hook reading of new symbol file References: <470040A1.20502@wichita.edu> <20071001004138.GA9697@caradoc.them.org> In-Reply-To: <20071001004138.GA9697@caradoc.them.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-10/txt/msg00002.txt.bz2 Daniel Jacobowitz wrote: > On Sun, Sep 30, 2007 at 07:34:41PM -0500, Rodney M. Bates wrote: > >>Where would be the right place to hook in some language/compiler- >>dependent actions to be executed whenever a new symbol file is >>loaded for any reason, e.g., file command, attach command, or >>specified on the gdb command line? > > > Probably the new_objfile observer, but it depends what you need to do > with it. > I just need to change the default handling of a signal, for user convenience. The preferred way to set it up depends on the compiler used. I detect that by the absence/presence of certain symbols that come from the runtime system. -- ------------------------------------------------------------- Rodney M. Bates, retired assistant professor Dept. of Computer Science, Wichita State University Wichita, KS 67260-0083 316-978-3922 rodney.bates@wichita.edu