From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 13659385841E; Mon, 10 Jan 2022 14:49:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 13659385841E From: "mark at klomp dot 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 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: threads X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mark at klomp dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Jan 2022 14:49:40 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D19471 --- Comment #17 from Mark Wielaard --- (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. >=20 > 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. --=20 You are receiving this mail because: You are on the CC list for the bug.=