* [Qemu-devel] gdb for sparc64?
@ 2010-09-02 17:47 Artyom Tarasenko
2010-09-03 9:11 ` Mark Cave-Ayland
0 siblings, 1 reply; 3+ messages in thread
From: Artyom Tarasenko @ 2010-09-02 17:47 UTC (permalink / raw)
To: qemu-devel, Blue Swirl
Does any gdb version work with current qemu-system-sparc64 ?
I tried 7.1 and 6.8 with --target=sparc64-linux and --target=sparc64
And result seems to be pretty much the same:
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=x86_64-unknown-linux-gnu
--target=sparc64-linux".
(gdb) target remote :1234
Remote debugging using :1234
[New Thread 1]
Remote 'g' packet reply is too long:
0000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001fff0000020000001fff00000240000000000003507000000000000000000000000000000000000000000000000
(gdb)
Regards,
Artyom Tarasenko
solaris/sparc under qemu blog: http://tyom.blogspot.com/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] gdb for sparc64?
2010-09-02 17:47 [Qemu-devel] gdb for sparc64? Artyom Tarasenko
@ 2010-09-03 9:11 ` Mark Cave-Ayland
2010-09-04 5:56 ` Igor Kovalenko
0 siblings, 1 reply; 3+ messages in thread
From: Mark Cave-Ayland @ 2010-09-03 9:11 UTC (permalink / raw)
To: Artyom Tarasenko; +Cc: Blue Swirl, qemu-devel
Artyom Tarasenko wrote:
> Does any gdb version work with current qemu-system-sparc64 ?
>
> I tried 7.1 and 6.8 with --target=sparc64-linux and --target=sparc64
> And result seems to be pretty much the same:
>
> 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=x86_64-unknown-linux-gnu
> --target=sparc64-linux".
> (gdb) target remote :1234
> Remote debugging using :1234
> [New Thread 1]
> Remote 'g' packet reply is too long:
> 0000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000001fff0000020000001fff00000240000000000003507000000000000000000000000000000000000000000000000
> (gdb)
>
> Regards,
> Artyom Tarasenko
Hi Artyom,
In order to use gdb with OpenBIOS on SPARC64, you need to build gdb with
--target=sparc64-linux and then point it towards a 64-bit image with
"file" in order to prevent the "Remote 'g' packet reply" error, e.g.
build@zeno:~/src/openbios/openbios-devel$ sparc64-linux-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=x86_64-unknown-linux-gnu
--target=sparc64-linux".
(gdb) target remote :1234
Remote debugging using :1234
[New Thread 1]
Remote 'g' packet reply is too long:
000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000001fff0000020000001fff00000240000000000003507000000000000000000000000000000000000000000000000
(gdb) file obj-sparc64/openbios-builtin.elf.nostrip
Reading symbols from
/home/build/src/openbios/openbios-devel/obj-sparc64/openbios-builtin.elf.nostrip...done.
(gdb) target remote :1234
Remote debugging using :1234
[New Thread 1]
0x000001fff0000020 in ?? ()
(gdb) cont
Continuing.
...and then off you go. I don't know whether this is a bug/feature in
the QEMU gdb stubs or just GDB itself.
HTH,
Mark.
--
Mark Cave-Ayland - Senior Technical Architect
PostgreSQL - PostGIS
Sirius Corporation plc - control through freedom
http://www.siriusit.co.uk
t: +44 870 608 0063
Sirius Labs: http://www.siriusit.co.uk/labs
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] gdb for sparc64?
2010-09-03 9:11 ` Mark Cave-Ayland
@ 2010-09-04 5:56 ` Igor Kovalenko
0 siblings, 0 replies; 3+ messages in thread
From: Igor Kovalenko @ 2010-09-04 5:56 UTC (permalink / raw)
To: Mark Cave-Ayland; +Cc: Blue Swirl, qemu-devel, Artyom Tarasenko
On Fri, Sep 3, 2010 at 1:11 PM, Mark Cave-Ayland
<mark.cave-ayland@siriusit.co.uk> wrote:
> Artyom Tarasenko wrote:
>
>> Does any gdb version work with current qemu-system-sparc64 ?
>>
>> I tried 7.1 and 6.8 with --target=sparc64-linux and --target=sparc64
>> And result seems to be pretty much the same:
>>
>> 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=x86_64-unknown-linux-gnu
>> --target=sparc64-linux".
>> (gdb) target remote :1234
>> Remote debugging using :1234
>> [New Thread 1]
>> Remote 'g' packet reply is too long:
Seems like set arch sparc:v9 helps:
http://lists.gnu.org/archive/html/qemu-devel/2009-01/msg00485.html
--
Kind regards,
Igor V. Kovalenko
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-09-04 5:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-02 17:47 [Qemu-devel] gdb for sparc64? Artyom Tarasenko
2010-09-03 9:11 ` Mark Cave-Ayland
2010-09-04 5:56 ` 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).