From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27767 invoked by alias); 24 Oct 2007 08:30:00 -0000 Received: (qmail 27758 invoked by uid 22791); 24 Oct 2007 08:30:00 -0000 X-Spam-Check-By: sourceware.org Received: from nz-out-0506.google.com (HELO nz-out-0506.google.com) (64.233.162.237) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 24 Oct 2007 08:29:56 +0000 Received: by nz-out-0506.google.com with SMTP id x7so110511nzc for ; Wed, 24 Oct 2007 01:29:54 -0700 (PDT) Received: by 10.35.116.12 with SMTP id t12mr421751pym.1193214594260; Wed, 24 Oct 2007 01:29:54 -0700 (PDT) Received: by 10.35.9.3 with HTTP; Wed, 24 Oct 2007 01:29:54 -0700 (PDT) Message-ID: Date: Wed, 24 Oct 2007 08:30:00 -0000 From: "Robert Bu" To: gdb@sourceware.org Subject: GDB RSP try 'p' before 'g' MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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/msg00190.txt.bz2 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? Thanks. Robert. 20071024