From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11008 invoked by alias); 12 Jan 2011 16:11:42 -0000 Received: (qmail 10946 invoked by uid 22791); 12 Jan 2011 16:11:40 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 12 Jan 2011 16:11:34 +0000 Received: (qmail 19974 invoked from network); 12 Jan 2011 16:11:32 -0000 Received: from unknown (HELO orlando.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 12 Jan 2011 16:11:32 -0000 From: Pedro Alves To: gdb-patches@sourceware.org Subject: Re: [patch] Add tests for JIT debugging interface Date: Wed, 12 Jan 2011 16:12:00 -0000 User-Agent: KMail/1.13.5 (Linux/2.6.33-29-realtime; KDE/4.4.5; x86_64; ; ) Cc: Paul Pluzhnikov , Yao Qi References: <20110111232641.AE3D5190C55@elbrus2.mtv.corp.google.com> <201101121003.37871.pedro@codesourcery.com> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201101121611.30341.pedro@codesourcery.com> 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/msg00261.txt.bz2 On Wednesday 12 January 2011 15:08:00, Paul Pluzhnikov wrote: > Is there a "standard" way to achieve this? Run to main, and write whatever options you need to (global) variables (e.g., "p count $count") instead of using "set args". You could leave the argc > 0 handling in place if it makes it simpler to debug manually. That, or compile the program with -DOPTION=FOO. Some tests do that instead. -- Pedro Alves