From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20753 invoked by alias); 8 Oct 2002 20:09:04 -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 20745 invoked from network); 8 Oct 2002 20:09:03 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 8 Oct 2002 20:09:03 -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 g98JnOX11106 for ; Tue, 8 Oct 2002 15:49:24 -0400 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 g98K92f12991; Tue, 8 Oct 2002 16:09:02 -0400 Received: from localhost.localdomain (vpn50-14.rdu.redhat.com [172.16.50.14]) by pobox.corp.redhat.com (8.11.6/8.11.6) with ESMTP id g98K91a17163; Tue, 8 Oct 2002 16:09:01 -0400 Received: (from kev@localhost) by localhost.localdomain (8.11.6/8.11.6) id g98K8uv07584; Tue, 8 Oct 2002 13:08:56 -0700 Date: Tue, 08 Oct 2002 13:09:00 -0000 From: Kevin Buettner Message-Id: <1021008200856.ZM7583@localhost.localdomain> In-Reply-To: Fredrik Tolf "Re: Instruction address catching" (Oct 5, 3:37am) References: <1033774568.4573.2.camel@pc7> <1021005001104.ZM5068@localhost.localdomain> <1033777278.4573.7.camel@pc7> <1021005005246.ZM13581@localhost.localdomain> <1033780168.4573.14.camel@pc7> <1033781828.4572.19.camel@pc7> To: Fredrik Tolf Subject: Re: Instruction address catching Cc: gdb@sources.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-10/txt/msg00077.txt.bz2 On Oct 5, 3:37am, Fredrik Tolf wrote: > The strangest thing happened. I made a small test program to test this. > The program spawns two threads, each of which increments a variable of > its own once a second. Even when I set a watchpoint on any of the > variables (i.e. "watch var1"), the program doesn't halt. I checked > manually, and the vars are increased, but gdb won't stop the program. > What can I possibly have done wrong? Are your variables local to a function or are they globals? Kevin