From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28953 invoked by alias); 1 Nov 2005 05:35:40 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 28940 invoked by uid 22791); 1 Nov 2005 05:35:38 -0000 Received: from c-24-61-23-223.hsd1.ma.comcast.net (HELO cgf.cx) (24.61.23.223) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Tue, 01 Nov 2005 05:35:38 +0000 Received: by cgf.cx (Postfix, from userid 201) id 68DD813C762; Tue, 1 Nov 2005 00:35:36 -0500 (EST) Date: Tue, 01 Nov 2005 05:35:00 -0000 From: Christopher Faylor To: gdb@sourceware.org Subject: Alternative to deprecated_init_ui_hook? Message-ID: <20051101053536.GA15716@trixie.casa.cgf.cx> Mail-Followup-To: gdb@sourceware.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.8i X-SW-Source: 2005-11/txt/msg00001.txt.bz2 In cleaning up the cygwin gdb shared library handling, I'm now able to use the "info sharedlibrary" command from solib.c. Previously this command was implemented in win32-nat.c but now that is no longer necessary. There was previously an alias for this command -- "info dll". I'm not having much luck adding this alias now because "info sharedlibrary" is set up after _initialize_win32 is called in init.cc -- a standard problem, IIRC. I've resorted to using deprecated_init_ui_hook to set this alias and that works but, given that the function begins with the word "deprectated", I would rather not use this method. Is there any other way to add this alias, though? I don't see anything obvious and I don't want to remove a command that cygwin gdb users may have become accustomed to. cgf