public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug sim/30624] New: sim: sim_close never called
@ 2023-07-09 9:07 jon at beniston dot com
0 siblings, 0 replies; only message in thread
From: jon at beniston dot com @ 2023-07-09 9:07 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=30624
Bug ID: 30624
Summary: sim: sim_close never called
Product: gdb
Version: 13.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: sim
Assignee: unassigned at sourceware dot org
Reporter: jon at beniston dot com
CC: vapier at gentoo dot org
Target Milestone: ---
Since gdb 10, it appears that sim_close is not called when quitting gdb.
In gdbsim_target::close, we have:
for (inferior *inf : all_inferiors (this))
close_one_inferior (inf);
But it appears close_one_inferior is never called.
It appears this is due to the passing of "this" to all_inferiors(). If that arg
is removed, then close_one_inferior is called (which results in sim_close being
called). However, not sure if that is quite the fix, in case we do actually
need to filter out some inferiors. Not familiar enough with the code to know.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-07-09 9:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-09 9:07 [Bug sim/30624] New: sim: sim_close never called jon at beniston dot com
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).