From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30235 invoked by alias); 16 May 2011 17:15:55 -0000 Received: (qmail 30223 invoked by uid 22791); 16 May 2011 17:15:52 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,TW_QD X-Spam-Check-By: sourceware.org Received: from mailout-de.gmx.net (HELO mailout-de.gmx.net) (213.165.64.22) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Mon, 16 May 2011 17:15:36 +0000 Received: (qmail invoked by alias); 16 May 2011 17:15:34 -0000 Received: from kref-4db610c5.pool.mediaWays.net (EHLO [77.182.16.197]) [77.182.16.197] by mail.gmx.net (mp042) with SMTP; 16 May 2011 19:15:34 +0200 Message-ID: <4DD15C6B.6080006@gmx.de> Date: Mon, 16 May 2011 17:15:00 -0000 From: Klaus Rudolph User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: =?ISO-8859-1?Q?Andr=E9_P=F6nitz?= CC: gdb@sourceware.org Subject: Re: automated cast to different data type possible? References: <20110511090850.28500@gmx.net> <201105121913.12475.andre.poenitz@nokia.com> <4DCFE110.4000703@gmx.de> <201105161343.54594.andre.poenitz@nokia.com> In-Reply-To: <201105161343.54594.andre.poenitz@nokia.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit 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: 2011-05/txt/msg00078.txt.bz2 André Pönitz schrieb: >> please give me an idea who is calling qdump_KRBase and what is parameter >> d? I actually have no idea how to add that to the printer script... or >> maybe any other python script to gdb. > > The code would be called from a Python script that creates the full > display for an local variable including all expanded children in one go. Is there any interface defined for that purpose? Or you think that I should create a new gdb command? If I handle that from a new gdb command, there is really no problem, but that fits not in the integration to ddd without changing sources of it. > 'd' is an object that accumulates output that's finally 'printed', and > takes care of properly closing nested items in case of exceptions. > Is there any description which can handle such idea? Maybe you already have such a solution finsihed? Maybe there is also an official one but not known by me? Regards Klaus