From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14388 invoked by alias); 14 Jun 2008 22:26:15 -0000 Received: (qmail 14378 invoked by uid 22791); 14 Jun 2008 22:26:14 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.25) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 14 Jun 2008 22:25:48 +0000 Received: from kahikatea.snap.net.nz (245.61.255.123.dynamic.snap.net.nz [123.255.61.245]) by viper.snap.net.nz (Postfix) with ESMTP id 815173DA580; Sun, 15 Jun 2008 10:25:45 +1200 (NZST) Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id 404C68FC6D; Sun, 15 Jun 2008 10:25:38 +1200 (NZST) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18516.17760.725834.936590@kahikatea.snap.net.nz> Date: Sun, 15 Jun 2008 03:20:00 -0000 To: Bob Rossi Cc: Tom Tromey , Vladimir Prus , Daniel Jacobowitz , Pedro Alves , gdb-patches@sourceware.org Subject: Re: [patch:MI] Observer for thread-changed In-Reply-To: <20080614185146.GB22940@brasko.net> References: <18509.7945.19078.399646@kahikatea.snap.net.nz> <200806101027.38454.ghost@cs.msu.su> <20080610132512.GB7986@caradoc.them.org> <200806141909.37719.ghost@cs.msu.su> <20080614185146.GB22940@brasko.net> X-Mailer: VM 7.19 under Emacs 22.2.50.2 X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-06/txt/msg00272.txt.bz2 > > I think that the Python layer would like to be notified of every > > thread change. That way, it will be possible to write Python > > libraries which react to these kinds of events. > > I can tell you this. The annotate-1 interface used to send out things > like breakpoints-changed whenever something happened that triggered a > breakpoint change. This data would come out so fast, it would effect the > performance of the front end from getting meaningful data. You mean level 2 annotations? Level 1 annotations is just --fullname which only emits the one (source) annotation. Yes, it does fire too frequently. I don't know why, but I think it fires when the breakpoints are removed and re-inserted each time execution stops. > I'm just giving a little advice, make sure that gdb doesn't auto send > out information if the inferior can manipulate itself in such a way that > it would effectively flood the communication between gdb and the front > end. > > Can thread changes happen often? how often? how will this effect the > communication load? I think it can only change, at most, once every time execution stops and when the user selects a new thread. So the load is very light. -- Nick http://www.inet.net.nz/~nickrob