From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 612 invoked by alias); 24 Oct 2007 11:54:54 -0000 Received: (qmail 601 invoked by uid 22791); 24 Oct 2007 11:54:53 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 24 Oct 2007 11:54:52 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id AFAD49833F; Wed, 24 Oct 2007 11:54:50 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 99820981F2; Wed, 24 Oct 2007 11:54:50 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.68) (envelope-from ) id 1Ikeoz-00055v-MB; Wed, 24 Oct 2007 07:54:49 -0400 Date: Wed, 24 Oct 2007 11:54:00 -0000 From: Daniel Jacobowitz To: Robert Bu Cc: gdb@sourceware.org Subject: Re: GDB RSP try 'p' before 'g' Message-ID: <20071024115449.GB19251@caradoc.them.org> Mail-Followup-To: Robert Bu , gdb@sourceware.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.15 (2007-04-09) 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-10/txt/msg00193.txt.bz2 On Wed, Oct 24, 2007 at 04:29:54PM +0800, Robert Bu wrote: > Hello all, > > When doing remote debugging, GDB, version 6.0 and before, tries to > fetch the registers' value by 'g' packet when connected to remote > target. However, GDB version 6.4 and later, tries 'p' packet before 'g' > packet. So if the target supports 'p' packet, GDB uses 'p' packet to > retrieve value of all registers. That may degrate the speed for the poor > connection speed (Serial, parallel or even ethernet) between GDB and the > target. > Does anybody know what is that change for? If you don't want this to happen, I recommend you do not provide the 'p' packet or else use a newer GDB. Earlier versions of GDB did not support 'p' at all. I believe I made GDB smarter about this around 6.6 or 6.7. -- Daniel Jacobowitz CodeSourcery