qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Using GDB to debug the sparc64 target
@ 2009-01-11 14:52 Jakub Jermar
  2009-01-11 15:12 ` Blue Swirl
  2009-01-11 17:22 ` [Qemu-devel] " Jakub Jermar
  0 siblings, 2 replies; 5+ messages in thread
From: Jakub Jermar @ 2009-01-11 14:52 UTC (permalink / raw)
  To: qemu-devel

Hi,

I'd like to help with debugging the sparc64 target (to get HelenOS
run on it). I'd like to use gdb for that purpose, however, I get
the following error when I try to connect to qemu from gdb:

GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=sparc64-linux-gnu".
(gdb) target remote localhost:1234
Remote debugging using localhost:1234
[New Thread 1]
Remote 'g' packet reply is too long: 00000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000001fff0000020000001fff00000240000000000000407000000000000000000000000000000000000000000000000

Is this a known issue? Is there a workaround for this?
The qemu version I am running is trunk, the host is
an ordinary ia32 system.

Thanks,
Jakub

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

* Re: [Qemu-devel] Using GDB to debug the sparc64 target
  2009-01-11 14:52 [Qemu-devel] Using GDB to debug the sparc64 target Jakub Jermar
@ 2009-01-11 15:12 ` Blue Swirl
  2009-01-11 17:22 ` [Qemu-devel] " Jakub Jermar
  1 sibling, 0 replies; 5+ messages in thread
From: Blue Swirl @ 2009-01-11 15:12 UTC (permalink / raw)
  To: qemu-devel

On 1/11/09, Jakub Jermar <jakub@jermar.eu> wrote:
> Hi,
>
>  I'd like to help with debugging the sparc64 target (to get HelenOS
>  run on it). I'd like to use gdb for that purpose, however, I get
>  the following error when I try to connect to qemu from gdb:
>
>  GNU gdb 6.8
>  Copyright (C) 2008 Free Software Foundation, Inc.
>  License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
>  This is free software: you are free to change and redistribute it.
>  There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
>  and "show warranty" for details.
>  This GDB was configured as "--host=i686-pc-linux-gnu --target=sparc64-linux-gnu".
>  (gdb) target remote localhost:1234
>  Remote debugging using localhost:1234
>  [New Thread 1]
>  Remote 'g' packet reply is too long: 00000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
>  00000000000000000000000000000000000000000000000000000000000000000000000000001fff0000020000001fff00000240000000000000407000000000000000000000000000000000000000000000000
>
>  Is this a known issue? Is there a workaround for this?
>  The qemu version I am running is trunk, the host is
>  an ordinary ia32 system.

The register size is still incorrect (32 bits) in the GDB you
produced. Also I can't make a working cross-gdb. The problem is on GDB
side: on Sparc64 OpenBSD, where everything is 64 bits, there is no
problem and the protocol matches what Qemu produces.

I'd be happy to be proven wrong, though. Currently my OpenBSD setup is
slightly broken, so this comes from memory.

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

* [Qemu-devel] Re: Using GDB to debug the sparc64 target
  2009-01-11 14:52 [Qemu-devel] Using GDB to debug the sparc64 target Jakub Jermar
  2009-01-11 15:12 ` Blue Swirl
@ 2009-01-11 17:22 ` Jakub Jermar
  2009-01-11 18:02   ` Blue Swirl
  2009-01-11 20:34   ` Igor Kovalenko
  1 sibling, 2 replies; 5+ messages in thread
From: Jakub Jermar @ 2009-01-11 17:22 UTC (permalink / raw)
  To: qemu-devel

Jakub Jermar wrote:
> I'd like to help with debugging the sparc64 target (to get HelenOS
> run on it). I'd like to use gdb for that purpose, however, I get
> the following error when I try to connect to qemu from gdb:
> 
> GNU gdb 6.8
> Copyright (C) 2008 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
> and "show warranty" for details.
> This GDB was configured as "--host=i686-pc-linux-gnu --target=sparc64-linux-gnu".
> (gdb) target remote localhost:1234
> Remote debugging using localhost:1234
> [New Thread 1]
> Remote 'g' packet reply is too long: 000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00
> 00000000000000000000000000000000000000000000000000000000000000000000000000001fff0000020000001fff00000240000000000000407000000000000000000000000000000000000000000000000

Ok, I was able to solve this problem by:

set architecture sparc:v9

Thanks,
Jakub

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

* Re: [Qemu-devel] Re: Using GDB to debug the sparc64 target
  2009-01-11 17:22 ` [Qemu-devel] " Jakub Jermar
@ 2009-01-11 18:02   ` Blue Swirl
  2009-01-11 20:34   ` Igor Kovalenko
  1 sibling, 0 replies; 5+ messages in thread
From: Blue Swirl @ 2009-01-11 18:02 UTC (permalink / raw)
  To: qemu-devel

On 1/11/09, Jakub Jermar <jakub@jermar.eu> wrote:
> Jakub Jermar wrote:
>  > I'd like to help with debugging the sparc64 target (to get HelenOS
>  > run on it). I'd like to use gdb for that purpose, however, I get
>  > the following error when I try to connect to qemu from gdb:
>  >
>  > GNU gdb 6.8
>  > Copyright (C) 2008 Free Software Foundation, Inc.
>  > License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
>  > This is free software: you are free to change and redistribute it.
>  > There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
>  > and "show warranty" for details.
>  > This GDB was configured as "--host=i686-pc-linux-gnu --target=sparc64-linux-gnu".
>  > (gdb) target remote localhost:1234
>  > Remote debugging using localhost:1234
>  > [New Thread 1]
>  > Remote 'g' packet reply is too long: 000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
>  00
>  > 00000000000000000000000000000000000000000000000000000000000000000000000000001fff0000020000001fff00000240000000000000407000000000000000000000000000000000000000000000000
>
>
> Ok, I was able to solve this problem by:
>
>  set architecture sparc:v9

Does not help here.

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

* Re: [Qemu-devel] Re: Using GDB to debug the sparc64 target
  2009-01-11 17:22 ` [Qemu-devel] " Jakub Jermar
  2009-01-11 18:02   ` Blue Swirl
@ 2009-01-11 20:34   ` Igor Kovalenko
  1 sibling, 0 replies; 5+ messages in thread
From: Igor Kovalenko @ 2009-01-11 20:34 UTC (permalink / raw)
  To: qemu-devel

On Sun, Jan 11, 2009 at 8:22 PM, Jakub Jermar <jakub@jermar.eu> wrote:
> Jakub Jermar wrote:
> Ok, I was able to solve this problem by:
>
> set architecture sparc:v9
>

That's what solves that problem for me too.

-- 
Kind regards,
Igor V. Kovalenko

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

end of thread, other threads:[~2009-01-11 20:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-11 14:52 [Qemu-devel] Using GDB to debug the sparc64 target Jakub Jermar
2009-01-11 15:12 ` Blue Swirl
2009-01-11 17:22 ` [Qemu-devel] " Jakub Jermar
2009-01-11 18:02   ` Blue Swirl
2009-01-11 20:34   ` Igor Kovalenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).