qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Extending gdb stub implementation with ARM926 registers support
@ 2009-07-01 17:05 Dmitry Smirnov
  2009-07-01 19:26 ` Nathan Froyd
  0 siblings, 1 reply; 2+ messages in thread
From: Dmitry Smirnov @ 2009-07-01 17:05 UTC (permalink / raw)
  To: qemu-devel

Hi,

As you know, ARM926 has few registers that are not supported by
current gdb stub. For instance, SPSRs, R13_abt, etc.

Is it possible to extend gdb stub in this way?
I would try to do it by myself, but I need some guidelines. Obviously,
I need to extend the stub with some xml files describing these
registers and add its processing somehow. How?

Dmitry

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

* Re: [Qemu-devel] Extending gdb stub implementation with ARM926 registers support
  2009-07-01 17:05 [Qemu-devel] Extending gdb stub implementation with ARM926 registers support Dmitry Smirnov
@ 2009-07-01 19:26 ` Nathan Froyd
  0 siblings, 0 replies; 2+ messages in thread
From: Nathan Froyd @ 2009-07-01 19:26 UTC (permalink / raw)
  To: qemu-devel

On Wed, Jul 01, 2009 at 09:05:35PM +0400, Dmitry Smirnov wrote:
> As you know, ARM926 has few registers that are not supported by
> current gdb stub. For instance, SPSRs, R13_abt, etc.
> 
> Is it possible to extend gdb stub in this way?
> I would try to do it by myself, but I need some guidelines. Obviously,
> I need to extend the stub with some xml files describing these
> registers and add its processing somehow. How?

You'll need to:

- Write the necessary XML file(s) in gdb-xml/.  I believe the format of
  the XML files is minimally documented in the GDB manual.  Reading
  other XML files can help as well (both in QEMU and GDB itself);

- Add those XML file(s) to gdb_xml_files in configure for appropriate
  targets;

- Add appropriate calls to gdb_register_coprocessor in
  target-arm/helper.c:cpu_arm_init.

-Nathan

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

end of thread, other threads:[~2009-07-01 19:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-01 17:05 [Qemu-devel] Extending gdb stub implementation with ARM926 registers support Dmitry Smirnov
2009-07-01 19:26 ` Nathan Froyd

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).