This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Error running remote gdb


On Wed, 2006-08-30 at 14:54 -0700, Bizhan Gholikhamseh (bgholikh) wrote:
>  Hi
> On our custome based powerpc we are running Linux 2.6.11.
> I am trying to run a sample debug session with gdbserver.
>  
> On target board I typed:
> gdbserver <host ip address>:portno <test program>
>  
> Then on host system I  typed:
> gdb <test program>
> gdb> target extended-remote <target IP addr>:portno
> gdb> b main
> gdb> cont
>  
> Then I got the following error on my host;
> Ignoring packet erro, continuing...
> Ignoring packet erro, continuing...
> Reply contains invalid hex digit 116

Most likely, your gdbserver and your gdb have not agreed on
a particular PPC architecture and register set.  So gdbserver
will send a message to gdb containing the register values, but
gdb will think that the message is the wrong size.

You can narrow this down by telling gdb:

	set debug remote on

before issuing the "target remote" command.

If this is the problem, it will be resolved by determining the
best-match PPC architecture and setting gdb to expect that 
architecture before connecting, by using the "set architecture"
command.

Michael



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]