public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* rseq and gdb
@ 2021-12-16 21:09 Mathieu Desnoyers
  2021-12-16 21:12 ` Florian Weimer
  0 siblings, 1 reply; 3+ messages in thread
From: Mathieu Desnoyers @ 2021-12-16 21:09 UTC (permalink / raw)
  To: Florian Weimer; +Cc: libc-alpha, Simon Marchi, gdb

Hi Florian,

I suspect that gdb should ideally do something to allow it to single-step
through rseq critical sections. In librseq [1], we emit the __rseq_cs_ptr_array
and __rseq_exit_point_array sections to allow gdb to know about rseq
critical sections and skip over those critical sections as needed. Otherwise
single-stepping over each instruction of a rseq critical section will loop
forever.

Now that glibc plans to enable rseq by default starting with glibc 2.35,
it appears to be a good timing to raise this topic with the gdb community.

Thanks,

Mathieu

[1] https://git.kernel.org/pub/scm/libs/librseq/librseq.git

-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com

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

end of thread, other threads:[~2021-12-17 15:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-16 21:09 rseq and gdb Mathieu Desnoyers
2021-12-16 21:12 ` Florian Weimer
2021-12-17 15:51   ` Simon Marchi

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