From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5081 invoked by alias); 11 Apr 2012 15:03:23 -0000 Received: (qmail 5059 invoked by uid 22791); 11 Apr 2012 15:03:22 -0000 X-SWARE-Spam-Status: No, hits=-3.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 11 Apr 2012 15:03:11 +0000 From: "palves at redhat dot com" To: gdb-prs@sourceware.org Subject: [Bug threads/12074] multi-inferior internal error Date: Wed, 11 Apr 2012 15:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: threads X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: palves at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2012-q2/txt/msg00019.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=12074 Pedro Alves changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |palves at redhat dot com --- Comment #2 from Pedro Alves 2012-04-11 15:02:34 UTC --- #1 - GDB doesn't support having multiple target stack active, so you can only debug multiple inferiors if they're all controlled by the same target. #2 - The core target (corelow.c, mostly) doesn't support debugging multiple cores. E.g., core_bfd is a global. The original report is about issuing "run" while debugging a core, which due to the above would break. As an intermediate step, GDB now pops the current target from the stack, along with getting rid of all its inferiors, when you switch to a ptrace-based target (IOW, core -> process). Not ideal, but better than breaking down. > (gdb) inferior 2 > [Switching to inferior 2 [] ()] > (gdb) file sleep > warning: core file may not match specified executable file. Caused by the points above, mostly by #2 (core_bfd global). -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.