From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8C1C2385841E; Fri, 14 Jul 2023 19:43:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8C1C2385841E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1689363816; bh=QrKau6KCMwd6o4GLpm2g+RUuXh/qjRknpDNBauHhmek=; h=From:To:Subject:Date:In-Reply-To:References:From; b=rHEt79Iham9rLmPR/M1Z+Nx92JdlYoMCby1C3n8W6+mAreXnrQ5nQLN+QshN2HqTe Dpwb9ggAOuic/BNMJCrnNzhCraBNvPplZiAjTYRMA+lokpHRbqMAWhGC2wrrb5YmSV cFi/EjUIzu5OltHCxR9b42XKjFS1zpyVHwhCA7bk= From: "cvs-commit at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug python/30615] search_memory() method on the gdb.Inferior objects disregards the particular inferior and always searches the memory of the current inferior instead Date: Fri, 14 Jul 2023 19:43:36 +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: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: tromey 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30615 --- Comment #6 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Tom Tromey : https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D75ec09829780= f8d00d8515e07101a29272a22303 commit 75ec09829780f8d00d8515e07101a29272a22303 Author: Tom Tromey Date: Thu Jul 6 11:33:47 2023 -0600 Use correct inferior in Inferior.read_memory et al A user noticed that Inferior.read_memory and a few other Python APIs will always use the currently selected inferior, not the one passed to the call. This patch fixes the bug by arranging to switch to the inferior. I found this same issue in several APIs, so this fixes them all. I also added a few missing calls to INFPY_REQUIRE_VALID to these methods. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30615 Approved-By: Pedro Alves --=20 You are receiving this mail because: You are on the CC list for the bug.=