This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: debugging from solaris host to linux pc target
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Ken Lierman <kliermanm at bigfoot dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Fri, 16 Jan 2004 09:18:04 -0500
- Subject: Re: debugging from solaris host to linux pc target
- References: <4006CE70.1040006@bigfoot.com>
On Thu, Jan 15, 2004 at 11:31:28AM -0600, Ken Lierman wrote:
> Hi all,
>
> I'm having some trouble remote debugging from a solaris host to a linux
> pc target (using gdb, gdbserver, and TCP).
>
> To sanity check what i'm doing (in terms of command line, target
> behavior, etc) i can sucessfully connect/run between any of serveral
> different linux pc hosts and the linux pc target.
>
> However, every time i use the solaris machine as the host, i get errors
> like:
>
> Remote packet too long:
> 00000000000000000000000000000000f0fdffbf0000000000000000000000007013004046020000230000002b0000002b0000002b00000000000000000000000040000000000000ffff0000000000000000ffff00000000000000000000000000000000000000000000000000000080ff3f00000000000000c805400000000000000080ff3f000000000000000000007f03000000000000ffff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
>
> Any ideas?
>
> I have attached a log of the 2 different scenarios also.
You missed the most important step.
To cross-debug you must build a GDB using --target specifying the
platform you wished to cross debug to. You can't use a native Solaris
GDB to debug an i686-linux target.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer