From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25882 invoked by alias); 16 May 2012 18:47:23 -0000 Received: (qmail 25873 invoked by uid 22791); 16 May 2012 18:47:22 -0000 X-SWARE-Spam-Status: No, hits=-6.4 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 16 May 2012 18:47:06 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q4GIjqUr011095 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 16 May 2012 14:46:41 -0400 Received: from barimba (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q4GHSjmB027035 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Wed, 16 May 2012 13:28:46 -0400 From: Tom Tromey To: Thomas Schwinge Cc: Joel Brobecker , gdb-patches@sourceware.org, Kevin Buettner , "Maciej W. Rozycki" Subject: Re: [SH] regs command References: <87ehqkrzzw.fsf@schwinge.name> <20120516142633.GV10253@adacore.com> <87zk98qe8t.fsf@schwinge.name> <20120516165730.GY10253@adacore.com> <87pqa4qbzp.fsf@schwinge.name> Date: Wed, 16 May 2012 18:47:00 -0000 In-Reply-To: <87pqa4qbzp.fsf@schwinge.name> (Thomas Schwinge's message of "Wed, 16 May 2012 19:20:10 +0200") Message-ID: <87r4ukox0y.fsf@fleche.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.95 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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: 2012-05/txt/msg00617.txt.bz2 >>>>> "Thomas" == Thomas Schwinge writes: Thomas> That's actually what I have tried first, but failed: due to Thomas> add_alias_cmd returning a NULL pointer (in c), deprecated_cmd Thomas> obviously failed. And as we'd remove this code in a few weeks Thomas> anyway, I decided not to spend more time on this, and instead go Thomas> the easy route. This means you registered "regs" before the thing it aliases was registered. This can happen because _initialize_xxx order is not defined. There's no easy fix :(. You could move "regs" initialization to a better spot but then it will be visible in all builds of gdb, not just those with this target compiled in. Tom