public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* [RFC] Changing gdbarch mid-execution
@ 2020-01-06 14:08 Luis Machado
  2020-01-22 14:56 ` Pedro Alves
  0 siblings, 1 reply; 9+ messages in thread
From: Luis Machado @ 2020-01-06 14:08 UTC (permalink / raw)
  To: gdb

Hi,

I have a situation at hand and i'm thinking about how to best solve it.

AArch64 SVE has the capability of changing the vector length 
mid-execution. This can be done at the thread level.

Native GDB already supports this by looking at the ptrace data. But 
doing this for a remote target requires changes to the RSP.

Instead of changing things just for this particular case, i'm 
considering having a more general mechanism for updating the 
architecture data whenever such change is noticed by whoever is 
controlling the inferior.

My idea is to get the mechanism started by using the stop reply to send 
a new notification, say, "arch-changed".

That should trigger GDB to re-fetch the architecture data and 
reinitialize it.

In the particular case of SVE, we only need to fetch the target 
description again, so we have the proper vector length and data types set.

Does this sound like a useful feature? Or should i go for the solution 
with less impact that will only take care of re-fetching the target 
description?

Regards,
Luis

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

end of thread, other threads:[~2020-01-28 19:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-06 14:08 [RFC] Changing gdbarch mid-execution Luis Machado
2020-01-22 14:56 ` Pedro Alves
2020-01-22 17:03   ` Luis Machado
2020-01-22 17:04     ` Luis Machado
2020-01-24 14:06       ` Alan Hayward
2020-01-23 16:06     ` Pedro Alves
2020-01-28 19:21       ` Luis Machado
2020-01-28 19:32         ` Tim Newsome
2020-01-28 19:40           ` Luis Machado

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 read-only IMAP folder(s) and NNTP newsgroup(s).