From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3211 invoked by alias); 18 Jul 2004 20:38:20 -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 3201 invoked from network); 18 Jul 2004 20:38:19 -0000 Received: from unknown (HELO nick.uklinux.net) (194.247.51.22) by sourceware.org with SMTP; 18 Jul 2004 20:38:19 -0000 Received: by nick.uklinux.net (Postfix, from userid 501) id D8ECD75FDF; Sun, 18 Jul 2004 21:34:10 +0100 (BST) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16634.57026.336517.649623@nick.uklinux.net> Date: Sun, 18 Jul 2004 21:07:00 -0000 To: "Alain Magloire" Cc: jmolenda@apple.com (Jason Molenda), cagney@gnu.org (Andrew Cagney), gdb@sources.redhat.com, Subject: Re: How does GDB/MI give the current frame In-Reply-To: <200407161404.KAA02192@smtp.ott.qnx.com> References: <28ADB7D6-D69A-11D8-BBF3-000A9569836A@apple.com> <200407161404.KAA02192@smtp.ott.qnx.com> X-SW-Source: 2004-07/txt/msg00236.txt.bz2 > > For what it's worth, at Apple we've done what Andrew is proposing. Our > > method spits out a "MI_HOOK_RESULT" notification on the ^done result > > whenever the console command entered by the user has changed the state > > in an important way. e.g. > > > > (gdb) > > -interpreter-exec console-quoted up > > ~"#2 0x000321f4 in gdb_main (args=0xbffff620) at > > ../../gdb/src/gdb/main.c:851\n" > > ~"851\t catch_errors (captured_main, args, \"\", RETURN_MASK_ALL);\n" > > ^done,MI_HOOK_RESULT=[HOOK_TYPE="frame_changed",frame="2"],time= > > {wallclock="0.00620",user="0.00323",system="0.00283",start="1089921236.3 > > 59009",end="1089921236.365212"} > > (gdb) > > > > But what Andrew is proposing is to use the async-output already part of MI to notify > the UI of changes. Wouldn't the output from "up" would be synchronous? I thought asynchronous output only occurs when the inferior is actually running. Nick