From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13223 invoked by alias); 31 Jan 2011 11:04:29 -0000 Received: (qmail 13209 invoked by uid 22791); 31 Jan 2011 11:04:27 -0000 X-SWARE-Spam-Status: No, hits=-6.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,TW_HR,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; Mon, 31 Jan 2011 11:04:17 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id p0VB4Gr7024246 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 31 Jan 2011 06:04:16 -0500 Received: from host1.dyn.jankratochvil.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p0VB4Efi011721 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 31 Jan 2011 06:04:16 -0500 Received: from host1.dyn.jankratochvil.net (localhost [127.0.0.1]) by host1.dyn.jankratochvil.net (8.14.4/8.14.4) with ESMTP id p0VB4Eil013750; Mon, 31 Jan 2011 12:04:14 +0100 Received: (from jkratoch@localhost) by host1.dyn.jankratochvil.net (8.14.4/8.14.4/Submit) id p0VB4D95013749; Mon, 31 Jan 2011 12:04:13 +0100 Date: Mon, 31 Jan 2011 15:03:00 -0000 From: Jan Kratochvil To: Hui Zhu Cc: Tom Tromey , gdb-patches ml Subject: Re: [PATCH/RFC] Move the cmdarg before load execarg Message-ID: <20110131110412.GA13702@host1.dyn.jankratochvil.net> References: <20110128095213.GA18993@host1.dyn.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes 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: 2011-01/txt/msg00581.txt.bz2 On Sun, 30 Jan 2011 01:31:46 +0100, Hui Zhu wrote: > Do you think we can add some other options to let gdb exec some > command before load the file? > Cause my gdb support multi-arch, but need "set gnutarget" everytime > when I use it. So I want add a alias in my bashrc like alias > arm-gdb='gdb -ex "set gnutarget"' or a shell to make it works better. ~/.gdbinit is read before anything else. first: mv ~/.gdbinit ~/.gdbinit2 alias arm-gdb='echo -e "set gnutarget elf32-littlearm\nsource ~/.gdbinit2" >~/.gdbinit; /usr/bin/gdb' alias gdb='echo -e "source ~/.gdbinit2" >~/.gdbinit; /usr/bin/gdb' Regards, Jan