From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27222 invoked by alias); 30 Jan 2011 00:32:13 -0000 Received: (qmail 27212 invoked by uid 22791); 30 Jan 2011 00:32:12 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_HR X-Spam-Check-By: sourceware.org Received: from mail-yx0-f169.google.com (HELO mail-yx0-f169.google.com) (209.85.213.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 30 Jan 2011 00:32:08 +0000 Received: by yxl31 with SMTP id 31so1963433yxl.0 for ; Sat, 29 Jan 2011 16:32:06 -0800 (PST) Received: by 10.150.146.1 with SMTP id t1mr6299456ybd.236.1296347526477; Sat, 29 Jan 2011 16:32:06 -0800 (PST) MIME-Version: 1.0 Received: by 10.147.168.6 with HTTP; Sat, 29 Jan 2011 16:31:46 -0800 (PST) In-Reply-To: References: <20110128095213.GA18993@host1.dyn.jankratochvil.net> From: Hui Zhu Date: Sun, 30 Jan 2011 00:52:00 -0000 Message-ID: Subject: Re: [PATCH/RFC] Move the cmdarg before load execarg To: Tom Tromey , Jan Kratochvil Cc: gdb-patches ml Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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/msg00563.txt.bz2 On Fri, Jan 28, 2011 at 20:11, Tom Tromey wrote: >>>>>> "Jan" =3D=3D Jan Kratochvil writes: > > Jan> It apparently breaks the much more common case of: > Jan> =A0 =A0gdb program -ex 'b main' > > FWIW, I think backward compatibility here is more important than whether > or not the options are defined in the best way possible. =A0In this case > it is especially true, since there is a fairly reasonable workaround. > > Tom > Agree with you. 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=3D'gdb -ex "set gnutarget"' or a shell to make it works better. Thanks, Hui