From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10757 invoked by alias); 29 Jul 2008 08:18:20 -0000 Received: (qmail 10746 invoked by uid 22791); 29 Jul 2008 08:18:19 -0000 X-Spam-Check-By: sourceware.org Received: from mail.idnet.net.uk (HELO mail.idnet.net.uk) (212.69.36.63) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 29 Jul 2008 08:17:52 +0000 Received: from [91.135.5.64] by mail.idnet.net.uk (GMS 15.00.3626/NU3963.00.7ca42f0c) with ESMTP id dqdpqkba for gdb@sourceware.org; Tue, 29 Jul 2008 09:17:44 +0100 Subject: Re: Multiprogram teaser From: Jeremy Bennett Reply-To: jeremy.bennett@embecosm.com To: gdb@sourceware.org In-Reply-To: <488E7670.40609@codesourcery.com> References: <488E7670.40609@codesourcery.com> Content-Type: text/plain Date: Tue, 29 Jul 2008 13:14:00 -0000 Message-Id: <1217319521.2841.18.camel@thomas> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 (2.22.3.1-1.fc9) Content-Transfer-Encoding: 7bit X-AuthenticatedSender: jeremy.bennett.embecosm.com@idnet.net.uk X-IsSubscribed: yes 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/msg00287.txt.bz2 On Mon, 2008-07-28 at 18:46 -0700, Stan Shebs wrote: > Here's a little teaser showing the results of me flogging GDB's source > code. In addition to the fun aspect of listing the main()s of two > different programs, it points up the the potential confusion of having > several programs in a session. What I've got so far in my prototype is > the ability to collect multiple execs from the command line, the > creation of "exec" objects from which you can select one as "current", > and some symbol table hacking to restrict lookups to the current executable. Hi Stan, This looks good, but points up the limitations of line based debugging once you have to handle multiple processors. Realistically this sort of approach is going to need some sort of windowing environment to separate out the information. Do you have a view of how this might look inside gdbtui or ddd or Eclipse? It might be worth thinking about how GDB would look debugging a modern mobile phone, with perhaps 5 processors, each from a different manufacturer. Best wishes, Jeremy -- Tel: +44 (1202) 416955 Cell: +44 (7970) 676050 SkypeID: jeremybennett Email: jeremy.bennett@embecosm.com Web: www.embecosm.com