From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24462 invoked by alias); 25 Apr 2007 20:37:55 -0000 Received: (qmail 24454 invoked by uid 22791); 25 Apr 2007 20:37:54 -0000 X-Spam-Check-By: sourceware.org Received: from 195.22.55.53.adsl.nextra.cz (HELO host0.dyn.jankratochvil.net) (195.22.55.53) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 25 Apr 2007 21:37:47 +0100 Received: from host0.dyn.jankratochvil.net (localhost [127.0.0.1]) by host0.dyn.jankratochvil.net (8.13.8/8.13.8) with ESMTP id l3PKaUna031218; Wed, 25 Apr 2007 22:36:30 +0200 Received: (from jkratoch@localhost) by host0.dyn.jankratochvil.net (8.13.8/8.13.8/Submit) id l3PKaUxO031217; Wed, 25 Apr 2007 22:36:30 +0200 Date: Wed, 25 Apr 2007 20:37:00 -0000 From: Jan Kratochvil To: Steve Freeland Cc: gdb@sources.redhat.com Subject: Re: Watchpoints in multithreaded programs Message-ID: <20070425203629.GA30988@host0.dyn.jankratochvil.net> References: <20061001212327.86189.qmail@web34208.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061001212327.86189.qmail@web34208.mail.mud.yahoo.com> User-Agent: Mutt/1.4.2.2i 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: 2007-04/txt/msg00153.txt.bz2 Hi, please check the patches gdb-6.3-threaded-watchpoints-20041213.patch gdb-6.3-threaded-watchpoints2-20050225.patch in http://download.fedora.redhat.com/pub/fedora/linux/core/development/source/SRPMS/gdb-6.6-8.fc7.src.rpm Going to check there some recent Linux kernels compatibility problems, though. Regards, Jan On Sun, 01 Oct 2006 23:23:27 +0200, Steve Freeland wrote: > Hello, > > What is the status of gdb's support for watchpoint in multithreaded apps? > > The manual states here: http://sources.redhat.com/gdb/current/onlinedocs/gdb_6.html#SEC34 that "With the current watchpoint implementation, GDB > can only watch the value of an expression in a single thread." > > However, there's a thread on gdb-patches here from 2004 that seems to indicate that this > limitation was in the process of being eliminated: http://sources.redhat.com/ml/gdb-patches/2004-12/msg00256.html > > So... I'm a bit confused. Is the manual out of date? Did the "watchthreads" patch never make > it into mainline builds for some reason? > > Thanks in advance, > - Steve