[Top] [All Lists]

Re: Debugging the MIPS processor using GDB

Subject: Re: Debugging the MIPS processor using GDB
From: Brian Foster <>
Date: Tue, 12 Aug 2008 16:37:41 +0200
Cc: Martin Gebert <>, TriKri <>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=gamma; h=domainkey-signature:received:received:from:reply-to:to:subject:date :user-agent:cc:references:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:message-id:sender; bh=IBrseEaWfh9qTfT/eVHBroPY0NF+C4el6CDqnoU0YIk=; b=dPawph0/7QRY8JMInYAzO5K6LcAKSE0jerOOBfKv/3CvDsfkTQYtfWyrgi8fkzjRCM a1iRXVw3VxQSy/0/X7EY+pL/+GK54MOiLYfH9+M/qsozo7AMQcJ/oTeBbxYjHh8C9Ccv a95P/TBtJFS3aBujsoi9nGUITZIqoXVdLYpD0=
Domainkey-signature: a=rsa-sha1; c=nofws;; s=gamma; h=from:reply-to:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:content-transfer-encoding :content-disposition:message-id:sender; b=UTGH/QsUHPOaFbzUatXDI+MUSLFcyx28clxPNAi3xadwSP+9adbirA3LcINuD4d4US 6ZG0NbtqiByogHkW1TPh773UJK1oODWxjsAla9iU2cCFEUF66puZZL8aU9M+HMQo/n56 OIoug0RXP11j0r8458usBwFITZoeYJPRggWWs=
In-reply-to: <>
Original-recipient: rfc822;
References: <> <>
Reply-to: Brian Foster <>
User-agent: KMail/1.9.6 (enterprise 0.20070907.709405)
On Tuesday 12 August 2008 16:14:22 Martin Gebert wrote:
> > Finally, there's a program called gdbserver, which comes with GDB. If I
> > write a remote stub, do I need this program? Where should it be run? Where
> > should my program be run? Since the stub is a c file, but lacks of a main
> > function, how do I compile it?
> At least this I can answer. In short, you need to call gdbserver on your 
> target machine in order to do remote debugging from your workstation. 
> The first Google match for "using gdbserver" reveals this:

  To the best of my knowledge, ‘gdbserver’ itself is not normally
 used with (E)JTAG probes; it's mostly for debugging userland
 code on a remote target machine whilst running ‘gdb’ itself on
 a local host workstation.

  I'm using the commercial FS² (First Silicon Systems, now owned
 by MIPS) EJTAG probe.  The local ‘gdb’ on the workstation talks
 to the local FS² software on the workstation, which talks to the
 probe (in my case, over USB, but there is also an Ethernet model).
 There is no ‘gdbserver’ in this setup per se, albeit I suppose
 the protocol between ‘gdb’ and the FS² software (which is called
 something like ‘jnetserver’?) might be similar/identical (I have
 no idea!).


“How many surrealists does it take to   | Brian Foster
 change a lightbulb? Three. One calms   | somewhere in south of France
 the warthog, and two fill the bathtub  |   Stop E$$o (ExxonMobil)!
 with brightly-coloured machine tools.” |

<Prev in Thread] Current Thread [Next in Thread>