Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* m68k gdb issue with skyeye
@ 2008-08-12 19:23 Joel Sherrill
  2008-08-13  0:18 ` Andreas Schwab
  2008-08-14 15:03 ` Michael Snyder
  0 siblings, 2 replies; 3+ messages in thread
From: Joel Sherrill @ 2008-08-12 19:23 UTC (permalink / raw)
  To: gdb, kang shuo


Hi,

Michael Kang and I have run into something with
m68k gdb and don't know how to fix it.  The executable
is for a coldfire mc5272.

With m68k-rtems* (basically m68k-elf) on gdb 6.8,
connecting to the Skyeye gdbserver gives this.

(gdb) tar remote :12345
Remote debugging using :12345
Remote 'g' packet reply is too long: 
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

Michael tried gdb 6.8 targeting m68k-linux and
it connects OK.

I tried gdb 6.6 m68k-rtems and it connects and
appears to work OK.

It looks like the way the maximum packet size is
calculated has changed since 6.6 and is dependent
on number of registers.

Does anyone see what the subtle difference is that
is breaking it for m68k-rtems?

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill@OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: m68k gdb issue with skyeye
  2008-08-12 19:23 m68k gdb issue with skyeye Joel Sherrill
@ 2008-08-13  0:18 ` Andreas Schwab
  2008-08-14 15:03 ` Michael Snyder
  1 sibling, 0 replies; 3+ messages in thread
From: Andreas Schwab @ 2008-08-13  0:18 UTC (permalink / raw)
  To: Joel Sherrill; +Cc: gdb, kang shuo

Joel Sherrill <joel.sherrill@oarcorp.com> writes:

> Michael Kang and I have run into something with
> m68k gdb and don't know how to fix it.  The executable
> is for a coldfire mc5272.
>
> With m68k-rtems* (basically m68k-elf) on gdb 6.8,
> connecting to the Skyeye gdbserver gives this.
>
> (gdb) tar remote :12345
> Remote debugging using :12345
> Remote 'g' packet reply is too long:
> 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

That probably means the server and the debugger don't agree about the
size of the floating point registers.  The coldfire has only 64-bit fp
regs.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: m68k gdb issue with skyeye
  2008-08-12 19:23 m68k gdb issue with skyeye Joel Sherrill
  2008-08-13  0:18 ` Andreas Schwab
@ 2008-08-14 15:03 ` Michael Snyder
  1 sibling, 0 replies; 3+ messages in thread
From: Michael Snyder @ 2008-08-14 15:03 UTC (permalink / raw)
  To: Joel Sherrill; +Cc: gdb, kang shuo

On Mon, 2008-08-11 at 21:46 -0500, Joel Sherrill wrote:
> Hi,
> 
> Michael Kang and I have run into something with
> m68k gdb and don't know how to fix it.  The executable
> is for a coldfire mc5272.
> 
> With m68k-rtems* (basically m68k-elf) on gdb 6.8,
> connecting to the Skyeye gdbserver gives this.
> 
> (gdb) tar remote :12345
> Remote debugging using :12345
> Remote 'g' packet reply is too long: 
> 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
> 
> Michael tried gdb 6.8 targeting m68k-linux and
> it connects OK.
> 
> I tried gdb 6.6 m68k-rtems and it connects and
> appears to work OK.
> 
> It looks like the way the maximum packet size is
> calculated has changed since 6.6 and is dependent
> on number of registers.
> 
> Does anyone see what the subtle difference is that
> is breaking it for m68k-rtems?

I have run into something similar -- yes there was a change in the way
this was computed, in fact I don't think it used to ever check if the
packet was too long (only if it was too short).




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-08-13  1:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-12 19:23 m68k gdb issue with skyeye Joel Sherrill
2008-08-13  0:18 ` Andreas Schwab
2008-08-14 15:03 ` Michael Snyder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox