From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16081 invoked by alias); 21 Oct 2009 08:58:28 -0000 Received: (qmail 16071 invoked by uid 22791); 21 Oct 2009 08:58:27 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-ew0-f216.google.com (HELO mail-ew0-f216.google.com) (209.85.219.216) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 21 Oct 2009 08:58:23 +0000 Received: by ewy12 with SMTP id 12so7334384ewy.0 for ; Wed, 21 Oct 2009 01:58:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.90.67 with SMTP id d45mr2881285wef.42.1256115500475; Wed, 21 Oct 2009 01:58:20 -0700 (PDT) Date: Wed, 21 Oct 2009 13:37:00 -0000 Message-ID: <325d766d0910210158y47944e5es48e44929fddb3770@mail.gmail.com> Subject: create a watchpoint with trace functionality From: martin mangard To: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-10/txt/msg00328.txt.bz2 Hello I'm trying to trace the value of a global status variable of an application. This variable is changed from various code positions. I would like to log/trace each change of this variable without stopping the application (at least for a long time) in order to perform a longterm test. I'm currently using a hardware-watchpoint Is there a possibility to configure a "autocontinue" after a watchpoint-event? Which means that the changed value is printed and the execution continues without any user interaction (pressing "c")? Is ist possible to set a tracepoint on a change of a memory area? Martin