From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29377 invoked by alias); 30 Jul 2008 17:21:18 -0000 Received: (qmail 29369 invoked by uid 22791); 30 Jul 2008 17:21:17 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 30 Jul 2008 17:21:00 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m6UHIr1a000563; Wed, 30 Jul 2008 13:18:53 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [10.11.255.20]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m6UHIq8e004567; Wed, 30 Jul 2008 13:18:52 -0400 Received: from opsy.redhat.com (vpn-10-47.bos.redhat.com [10.16.10.47]) by pobox.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m6UHIqHX008150; Wed, 30 Jul 2008 13:18:52 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id 88706888031; Wed, 30 Jul 2008 11:18:51 -0600 (MDT) To: Stan Shebs Cc: gdb@sourceware.org Subject: Re: Multiprogram teaser References: <488E7670.40609@codesourcery.com> From: Tom Tromey Reply-To: tromey@redhat.com X-Attribution: Tom Date: Wed, 30 Jul 2008 17:43:00 -0000 In-Reply-To: <488E7670.40609@codesourcery.com> (Stan Shebs's message of "Mon\, 28 Jul 2008 18\:46\:24 -0700") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-07/txt/msg00324.txt.bz2 >>>>> "Stan" == Stan Shebs writes: Stan> Here's a little teaser showing the results of me flogging GDB's Stan> source code. Delightful. Stan> Attaching objfile /home/stan/hello to exec /home/stan/hello Stan> Attaching objfile /home/stan/goodbye to exec /home/stan/goodbye [...] Stan> (gdb) exec /home/stan/hello I'm wondering what happens if you want to start two instances of hello at once. I suppose one solution to the UI problems would be to treat each separate "exec" (I dunno what you want to call this -- a concept encompassing a process, a core file, or an unstarted executable) as an object that can be manipulated in its own right. So, you could have "info " to list them, switch between them, have "set args" set the arguments for the current one, "run" start one or more of them, etc. Tom