From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8439 invoked by alias); 16 Jul 2004 14:08:31 -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 8424 invoked from network); 16 Jul 2004 14:08:29 -0000 Received: from unknown (HELO hub.ott.qnx.com) (209.226.137.76) by sourceware.org with SMTP; 16 Jul 2004 14:08:29 -0000 Received: from smtp.ott.qnx.com (smtp.ott.qnx.com [10.0.2.158]) by hub.ott.qnx.com (8.9.3/8.9.3) with ESMTP id JAA03240 for ; Fri, 16 Jul 2004 09:27:25 -0400 Received: (from alain@localhost) by smtp.ott.qnx.com (8.8.8/8.6.12) with UUCP id KAA05457 for gdb@sources.redhat.com; Fri, 16 Jul 2004 10:08:27 -0400 Message-Id: <200407161408.KAA05457@smtp.ott.qnx.com> Subject: Re: How does GDB/MI give the current frame To: gdb@sources.redhat.com Date: Fri, 16 Jul 2004 14:12:00 -0000 From: "Alain Magloire" In-Reply-To: <5420CFB8-D69C-11D8-BBF3-000A9569836A@apple.com> from "Jason Molenda" at Jul 15, 2004 01:19:52 PM MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2004-07/txt/msg00203.txt.bz2 > > > On Jul 15, 2004, at 1:04 PM, Jason Molenda wrote: > > > 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. > > [...] > > > > > FWIW, here's the list of notification hooks we currently generate: > > breakpoint_create, breakpoint_modify, breakpoint_delete, > > stack_changed, frame_changed, thread_changed. > > > how about for "set p 3", changing values. > I should add that we also call output_control_change_notification() > with "stepping" or "continuing" when the user enters a console command > that resumes execution. e.g. > > (gdb) > -interpreter-exec console-quoted step > ^stepping > ^running > (gdb) > *stopped,time= > {wallclock="0.01470",user="0.00635",system="0.00845",start="1089922425.6 > 47144",end="1089922425.661845"},reason="end-stepping-range",thread- > id="1" > (gdb) > -interpreter-exec console-quoted continue > ~"Continuing.\n" > ^continuing > ^running > Good !! Few questions why "console-quoted", what's wrong with "console" or rather what is -quoted provide more ? What's "^continuing" ? a way to discovered the type of command enter by the user ? so "^stepping" for step etc ... is it usefull ? > So the UI knows when the user is resuming the inferior behind its back. > > > J > -- au revoir, alain ---- Aussi haut que l'on soit assis, on est toujours assis que sur son cul !!!