From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3F2113858C74; Thu, 6 Jul 2023 18:20:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3F2113858C74 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1688667652; bh=z77fKBpx/tUiTdjoQMWxzHctavFEXDWnZ0rsIZMHWRU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=LH7mzSxbSiSAObDjm8vhsTL2RjIfeFJIKQJUQlqK28H9MqQC1Kh5n4OxFSHHEqX0J Ok8F9yrNGC62RfrndO1ne3gWTSXFmkDnFp0SufbtmOVX9VJ51aEai7GgK2K6wthYYQ XncN+VK483z2bA5PCzqqtWmxV6NhuhF+OVM9P06o= From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug python/15351] GDB should provide a way to tell if the inferior comes from a core file Date: Thu, 06 Jul 2023 18:20:51 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: python X-Bugzilla-Version: 7.4 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tromey at sourceware dot org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: 12.1 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: target_milestone cc bug_status resolution 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D15351 Tom Tromey changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |12.1 CC| |tromey at sourceware dot o= rg Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #2 from Tom Tromey --- This can be done now, by inspecting Inferior.connection: (gdb) python print(gdb.selected_inferior().connection.type) core This was in gdb 12. --=20 You are receiving this mail because: You are on the CC list for the bug.=