public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "mark at klomp dot org" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug threads/19471] unexpected stop in multi-inferior debugging
Date: Mon, 10 Jan 2022 14:49:39 +0000	[thread overview]
Message-ID: <bug-19471-4717-potehDq6D5@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-19471-4717@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=19471

--- Comment #17 from Mark Wielaard <mark at klomp dot org> ---
(In reply to Tom Tromey from comment #16)
> (In reply to Mark Wielaard from comment #15)
> > Sometimes an internal sanity check calls exit when detecting something odd
> > going on. It would be useful to catch where/when that happens with catch
> > exit.
> 
> In the implementation we're discussing, the stop would happen
> after the process already exited.  Would that still be useful?
> I can see it being useful with the TRACEEXIT implementation since
> memory would still be available... but I have trouble picturing
> using the infrun implementation.
> (Also you can "catch syscall" to catch exits, I think.  Except
> signals, but those usually cause stops anyway.)

Yes, I was hoping it would work like stop signals.
Then you simply where to see the cause of the exit.

The trouble with catch syscall is that you have to remember all the various
exit/exit_group/etc/ syscalls you need to catch for it to work properly.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

  parent reply	other threads:[~2022-01-10 14:49 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-19471-4717@http.sourceware.org/bugzilla/>
2022-01-09 22:31 ` tromey at sourceware dot org
2022-01-10 10:27 ` mark at klomp dot org
2022-01-10 14:40 ` tromey at sourceware dot org
2022-01-10 14:49 ` mark at klomp dot org [this message]
2022-01-10 22:02 ` tromey at sourceware dot org
2022-11-24 16:18 ` tromey at sourceware dot org
2022-12-04 15:56 ` tromey at sourceware dot org
2022-12-04 18:04 ` tromey at sourceware dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-19471-4717-potehDq6D5@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).