From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15809 invoked by alias); 14 Apr 2003 04:14:22 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 15802 invoked from network); 14 Apr 2003 04:14:21 -0000 Received: from unknown (HELO localhost.redhat.com) (24.157.166.107) by sources.redhat.com with SMTP; 14 Apr 2003 04:14:21 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id C30B62B3C; Mon, 14 Apr 2003 00:14:17 -0400 (EDT) Message-ID: <3E9A3599.9080100@redhat.com> Date: Mon, 14 Apr 2003 04:14:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030223 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jim Ingham Cc: gdb@sources.redhat.com Subject: Re: Add fullname to breakpoint output References: <540DA746-6790-11D7-958C-000A277A8808@apple.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-04/txt/msg00127.txt.bz2 > Yes, this is a desirable goal. Have you thought about how to do this? > The best way I can think of is to have a new ui_out that builds up an intermediate representation for results that is easy to access randomly - making up real lists & dictionaries from the ui_out_field_xxx and list & table stuff. Then we could banish ui_out_text & friends to the CLI commands to take the whole result, pull bits out in the order they expected, and annotate them with text, newlines, etc, in order to make a nice display. > > In practice, this will be gnarly to get right, but you could do it incrementally by getting the intermediate rep. ui_out working, then fix the CLI commands one by one by swapping in the new ui_out for those commands you had fixed, and using the old CLI one for the commands you hadn't gotten working... I don't know that anything that complicated is needed. disasm.c worked out pretty well. Andrew