public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [RFC 0/3] Wait for inferior after attaching
@ 2024-04-18  7:36 Tankut Baris Aktemur
  2024-04-18  7:36 ` [PATCH 1/3] gdb: print target in print_target_wait_results Tankut Baris Aktemur
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Tankut Baris Aktemur @ 2024-04-18  7:36 UTC (permalink / raw)
  To: gdb-patches

Hello,

The second patch of this series uses 'wait_for_inferior' to wait for
events right after attaching to a process, instead of using the main
event loop for events and the inferior continuations to finish the
inferior setup.

I explain some existing problems in Patch 2 and propose
'wait_for_inferior' as a potential solution.  I'd like to post this as
an RFC because the inferior continuations are elegant and eliminating
their use makes me think that I'm missing something.  However, it may
also be the case that since the time continuations were introduced and
used, GDB has evolved significantly and the original motivation is
perhaps no longer there.  The attach and remote-target start flows are
the only places they are used.

Regards,
Baris

Tankut Baris Aktemur (3):
  gdb: print target in print_target_wait_results
  gdb: wait for inferior after attaching instead of adding a
    continuation
  gdb: remove inferior continuations

 gdb/inf-loop.c |  5 -----
 gdb/infcmd.c   | 24 +++++++++++-------------
 gdb/inferior.c | 19 -------------------
 gdb/inferior.h | 11 -----------
 gdb/infrun.c   | 38 ++++++++++++++++++++++++--------------
 gdb/infrun.h   | 12 +++++++++++-
 gdb/remote.c   |  2 +-
 7 files changed, 47 insertions(+), 64 deletions(-)

-- 
2.34.1

Intel Deutschland GmbH
Registered Address: Am Campeon 10, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de <http://www.intel.de>
Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva  
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928


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

end of thread, other threads:[~2024-04-22  6:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-18  7:36 [RFC 0/3] Wait for inferior after attaching Tankut Baris Aktemur
2024-04-18  7:36 ` [PATCH 1/3] gdb: print target in print_target_wait_results Tankut Baris Aktemur
2024-04-18  7:36 ` [RFC 2/3] gdb: wait for inferior after attaching instead of adding a continuation Tankut Baris Aktemur
2024-04-19 20:33   ` Tom Tromey
2024-04-22  6:48     ` Aktemur, Tankut Baris
2024-04-18  7:36 ` [RFC 3/3] gdb: remove inferior continuations Tankut Baris Aktemur

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