From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12475 invoked by alias); 7 Oct 2006 23:13:16 -0000 Received: (qmail 12466 invoked by uid 22791); 7 Oct 2006 23:13:16 -0000 X-Spam-Check-By: sourceware.org Received: from smtp1-g19.free.fr (HELO smtp1-g19.free.fr) (212.27.42.27) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 07 Oct 2006 23:13:15 +0000 Received: from [192.168.0.11] (pas38-3-82-229-199-15.fbx.proxad.net [82.229.199.15]) by smtp1-g19.free.fr (Postfix) with ESMTP id 6F0752F7B1; Sun, 8 Oct 2006 01:13:12 +0200 (CEST) Subject: Re: Watchpoint single-stepping. From: =?ISO-8859-1?Q?Fr=E9d=E9ric?= Riss To: Rob Quill Cc: gdb@sourceware.org In-Reply-To: References: Content-Type: text/plain; charset=utf-8 Date: Sat, 07 Oct 2006 23:13:00 -0000 Message-Id: <1160262792.5142.9.camel@funkylaptop> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-10/txt/msg00033.txt.bz2 Le samedi 07 octobre 2006 à 23:55 +0100, Rob Quill a écrit : > I am trying to find the point in the code where the conditions of a > software watchpoint are checked each step, as I wish to add something > that also requires the checking of values of variables at each step. > Does anyone know where this is? All the low-level stepping is done in the infrun.c file. Look particularly at the handle_inferior_event function which is called for each target stop event. There you'll find calls to bpstat_stop_status (defined in breakpoint.c) where watchpoint expressions are re-evealuated and compared to their old value. Fred.