From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27317 invoked by alias); 4 Nov 2002 14:53:02 -0000 Mailing-List: contact insight-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sources.redhat.com Received: (qmail 27273 invoked from network); 4 Nov 2002 14:53:01 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 4 Nov 2002 14:53:01 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id gA4EUaw05731 for ; Mon, 4 Nov 2002 09:30:36 -0500 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id gA4Er0f02296; Mon, 4 Nov 2002 09:53:00 -0500 Received: from lindt.uglyboxes.com (vpn50-45.rdu.redhat.com [172.16.50.45]) by pobox.corp.redhat.com (8.11.6/8.11.6) with ESMTP id gA4EqxT17372; Mon, 4 Nov 2002 09:52:59 -0500 Date: Mon, 04 Nov 2002 06:53:00 -0000 From: Keith Seitz X-X-Sender: keiths@lindt.uglyboxes.com To: Satya cc: insight@sources.redhat.com Subject: Re: Refreshing display In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2002-q4/txt/msg00065.txt.bz2 On Sun, 27 Oct 2002, Satya wrote: > Can someone tell me how the mechanism how the display gets refreshed in > the breakpoint window when I set the breakpoint from the command line. When you set a breakpoint, a breakpoint event is triggered in breakpoint.c (look for breakpoint_create_event, breakpoint_delete_event, breakpoint_modify_event). In gdbtk/generic/gdbtk-hooks.c, we configure an event handler for this, gdbtk_*_breakpoint (which are all located in gdb/gdbtk/generic/gdbtk-bp.c). These call the Tcl procedure gdbtk_tcl_breakpoint, which creates a BreakpointEvent (gdbevent.it[hb]), which is distributed to all the GDBEventHandlers. The SrcTextWins are GDBEventHandlers, and so SrcTextWin::breakpoint is called, which (eventually) sets the breakpoint. Keith