From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23760 invoked by alias); 17 May 2006 19:28:18 -0000 Received: (qmail 23752 invoked by uid 22791); 17 May 2006 19:28:17 -0000 X-Spam-Check-By: sourceware.org Received: from aldan.algebra.com (HELO aldan.algebra.com) (216.254.65.224) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 17 May 2006 19:28:15 +0000 Received: from corbulon.video-collage.com (static-151-204-231-237.bos.east.verizon.net [151.204.231.237]) by aldan.algebra.com (8.13.6/8.13.6) with ESMTP id k4HJRkPn046861 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 17 May 2006 15:27:47 -0400 (EDT) (envelope-from mi+mx@aldan.algebra.com) Received: from [172.21.130.86] (mx-broadway [38.98.68.18]) by corbulon.video-collage.com (8.13.6/8.13.6) with ESMTP id k4HJRekn026235 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 17 May 2006 15:27:41 -0400 (EDT) (envelope-from mi+mx@aldan.algebra.com) From: Mikhail Teterin To: Daniel Jacobowitz Subject: Re: Single-executable patch Date: Wed, 17 May 2006 19:28:00 -0000 User-Agent: KMail/1.9.1 Cc: insight@sourceware.org, gdb-patches@sources.redhat.com References: <200605162201.33772.mi+mx@aldan.algebra.com> <200605171502.18798.mi+mx@aldan.algebra.com> <20060517190737.GB12559@nevyn.them.org> In-Reply-To: <20060517190737.GB12559@nevyn.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-u" Content-Transfer-Encoding: 8bit Content-Disposition: inline Message-Id: <200605171527.35587.mi+mx@aldan.algebra.com> X-Virus-Status: Clean Mailing-List: contact insight-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sourceware.org X-SW-Source: 2006-q2/txt/msg00040.txt.bz2 ÓÅÒÅÄÁ 17 ÔÒÁ×ÅÎØ 2006 15:07, Daniel Jacobowitz ÎÁÐÉÓÁ×: > This has been a world of trouble for other programs in the past, I wonder, what kind of trouble? > and I do not recommend it; we switched to the separate main programs > deliberately IIRC. The current main() functions are almost "too simple" now -- may it be, that something like my patch is *no longer* troublesome? > If this is all you want, here's a simple implementation: > > /usr/bin/gdbtui: > #!/usr/bin/gdb -i=tui Cool! I wonder, why even bother linking other executables... It would make sense to do it, if, for example, the gdb was not linking with Tcl and friends, but it does anyway... Thanks! -mi