From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6792 invoked by alias); 4 Mar 2005 15:42:40 -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 6567 invoked from network); 4 Mar 2005 15:42:20 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 4 Mar 2005 15:42:20 -0000 Received: from drow by nevyn.them.org with local (Exim 4.44 #1 (Debian)) id 1D7EwP-0000Lc-FZ; Fri, 04 Mar 2005 10:42:13 -0500 Date: Fri, 04 Mar 2005 15:42:00 -0000 From: Daniel Jacobowitz To: Buday Gergely Cc: gdb@sources.redhat.com Subject: Re: gdbserver vs. gdbstub Message-ID: <20050304154213.GA1213@nevyn.them.org> Mail-Followup-To: Buday Gergely , gdb@sources.redhat.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6+20040907i X-SW-Source: 2005-03/txt/msg00038.txt.bz2 On Fri, Mar 04, 2005 at 03:26:39PM +0100, Buday Gergely wrote: > Hi folks, > > I have read Chapter 17 of the gdb manual that describes the usage of > gdbserver and gdbstub. One thing was not clear: when to choose one over > the other? I have a guess that one only need gdbstub when there's no > operating system on the target machine or there are memory limitations > that do not enable using the larger gdbserver. Am I right? "gdb stub" is a generic term. GDB provides several low-level stubs, which are basically just sample implementations; and gdbserver is itself a "stub". It happens to be a stub that runs in user context on Linux systems (with potential ports to other OSs that haven't been done yet - a Windows port was contributed, but hasn't been integrated yet - needs more cleanup). Another user mode stub for Linux is Red Hat's RDA, and one non-user-mode stub for Linux is kgdb. And then there are boot monitors like redboot which can also serve as stubs. -- Daniel Jacobowitz CodeSourcery, LLC