From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23036 invoked by alias); 16 Feb 2005 16:59:27 -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 23014 invoked from network); 16 Feb 2005 16:59:24 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 16 Feb 2005 16:59:24 -0000 Received: from drow by nevyn.them.org with local (Exim 4.44 #1 (Debian)) id 1D1SW5-0002zD-QN; Wed, 16 Feb 2005 11:59:09 -0500 Date: Thu, 17 Feb 2005 01:42:00 -0000 From: Daniel Jacobowitz To: Atsushi Nemoto Cc: gdb@sources.redhat.com Subject: Re: huge remote debug traffic with multi-thread program Message-ID: <20050216165909.GA11396@nevyn.them.org> Mail-Followup-To: Atsushi Nemoto , gdb@sources.redhat.com References: <20050216.210432.15259170.nemoto@toshiba-tops.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050216.210432.15259170.nemoto@toshiba-tops.co.jp> User-Agent: Mutt/1.5.6+20040907i X-SW-Source: 2005-02/txt/msg00111.txt.bz2 On Wed, Feb 16, 2005 at 09:04:32PM +0900, Atsushi Nemoto wrote: > When I typed Ctrl-C and 'c' (continue) on gdb, traffic between gdb and > gdbserver start eating network bandwidth and gdbserver eats whole CPU > power on the target. Is this a normal behavior? The normal cause of this sort of problem is GDB's lame software single-step support. You have two threads iterating in the same piece of code, and probably GDB is continually getting a trap from the wrong one. Or it may get confused about where it has put the breakpoint. Does the problem go away if each thread is in a separate identical copy of the function? -- Daniel Jacobowitz CodeSourcery, LLC