Message ID | 20230713-py-inf-fixes-30615-v3-0-26a024f30553@adacore.com |
---|---|
Headers |
Return-Path: <gdb-patches-bounces+patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1AC44385734A for <patchwork@sourceware.org>; Thu, 13 Jul 2023 14:06:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1AC44385734A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1689257160; bh=mWdO+0QN/rR14WobQqugDXQlfIa84L44sidAFfwlbQc=; h=Subject:Date:To:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=ZZlBs+U9+SrN+s8tfnBu3JSIcQCHksouAnyAZmCG2fvsdEd6z+rW/PNfviQSbPcwu PprsCqQ98YPzYvEMUn7a2x+ckcrpjUaBxfBrzNZjy/S250Du25lY80VaXBBZF6+0uf 7XoWXrfm/IGHVNk1myn0vhzpyOAK2HF6HwNTekcQ= X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e]) by sourceware.org (Postfix) with ESMTPS id 297433858D1E for <gdb-patches@sourceware.org>; Thu, 13 Jul 2023 14:05:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 297433858D1E Received: by mail-io1-xd2e.google.com with SMTP id ca18e2360f4ac-78625caa702so26115739f.1 for <gdb-patches@sourceware.org>; Thu, 13 Jul 2023 07:05:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689257130; x=1691849130; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=mWdO+0QN/rR14WobQqugDXQlfIa84L44sidAFfwlbQc=; b=WGe2I8o3sGmYDEhRB+qu1jzUw3OX6ytTy5FhDkZrdbAAOs77OryZVsEG5hjR8SkY++ Q2lqpzVaKCs/HLDkoz1V8x+KJ9w0p60YEDpMKI21BZT7hWPCH5rhJb+RKt4fcy/TVIPw S+/Wyl6yYKm4RiLwmxL0VupXDvPw92rKSRAgOjG+oVb0Sa017H1H7Jm/2QqSVVdTZLRy 4OjyvTRHAxU0fiPAojQEplnob+Hg60NldEoeI0w4SYCvhDLY+avwdS4lD4wQdhLd7LrF mC5VUc0DKWVOxfzxJZ15FQh2wKGRuT5HooR7ODyjuTMYcmoDWRrhD8QsE3Vml+cICVCl DeLg== X-Gm-Message-State: ABy/qLYKDyq6L5dSxS9ipS/EfZM3OB4LhS3O8uPc/n6Ul7ysDLmc18Qz iUfkeHtrZt85wrdsGnnMY+VgUVGgwxMOET6mO/dv5Q== X-Google-Smtp-Source: APBJJlEHe5RzmmoP5509v0DzLFwSeq8rq/EksNuk5y/FVkEKAGFoFmOElpJukaLjSTvtcfkS8XrgbQ== X-Received: by 2002:a5e:a902:0:b0:780:bfc8:ad10 with SMTP id c2-20020a5ea902000000b00780bfc8ad10mr1939251iod.1.1689257130033; Thu, 13 Jul 2023 07:05:30 -0700 (PDT) Received: from localhost.localdomain (75-166-135-140.hlrn.qwest.net. [75.166.135.140]) by smtp.gmail.com with ESMTPSA id n13-20020a02a90d000000b0042b7b76b29fsm1841336jam.174.2023.07.13.07.05.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jul 2023 07:05:29 -0700 (PDT) Subject: [PATCH v3 0/6] Fix some Python Inferior methods Date: Thu, 13 Jul 2023 08:05:25 -0600 Message-Id: <20230713-py-inf-fixes-30615-v3-0-26a024f30553@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAKUEsGQC/32Nyw6CMBREf4V07TV9V1z5H8bFBS7SBY+0pJEQ/ t3CShPj8mRmzqwsUvAU2bVYWaDkox+HDOpUsLrD4Ungm8xMcqm44w6mBfzQQutfFEFxKwxYe6G Wl9oZrFgeToGOOO/uj8wVRoIq4FB3u6rHOFPYi52P8xiW4zyJvf73Jwng4FwpsTKmNIrfsMF6D HSux57tT0l+SIT4KZFZYjVKo/nFarLfkm3b3gzTwWYUAQAA To: gdb-patches@sourceware.org Cc: Pedro Alves <pedro@palves.net> X-Mailer: b4 0.12.3 X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list <gdb-patches.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/gdb-patches/> List-Post: <mailto:gdb-patches@sourceware.org> List-Help: <mailto:gdb-patches-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=subscribe> From: Tom Tromey via Gdb-patches <gdb-patches@sourceware.org> Reply-To: Tom Tromey <tromey@adacore.com> Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" <gdb-patches-bounces+patchwork=sourceware.org@sourceware.org> |
Series |
Fix some Python Inferior methods
|
|
Message
Tom Tromey
July 13, 2023, 2:05 p.m. UTC
A user pointed out a bug in Inferior.search_memory. This series is the result. Most of the patches are minor things I noticed while working on the final patch, which fixes the bug. Regression tested on x86-64 Fedora 36. --- Changes in v3: - Added some comments to the final patch - Link to v2: https://inbox.sourceware.org/gdb-patches/20230711-py-inf-fixes-30615-v2-0-64a2540864e6@adacore.com Changes in v2: - Addressed review comments - Added scoped_restore_current_inferior_for_memory patch - Link to v1: https://inbox.sourceware.org/gdb-patches/20230707-py-inf-fixes-30615-v1-0-7792ab559530@adacore.com --- Tom Tromey (6): Minor cleanups in py-inferior.exp Refactor py-inferior.exp Rename Python variable in py-inferior.exp Remove obsolete comment from gdbthread.h Introduce scoped_restore_current_inferior_for_memory Use correct inferior in Inferior.read_memory et al gdb/aix-thread.c | 18 ++----- gdb/gdbthread.h | 2 +- gdb/inferior.h | 29 +++++++++++ gdb/proc-service.c | 10 +--- gdb/python/py-inferior.c | 43 ++++++++++++++--- gdb/testsuite/gdb.python/py-inferior.exp | 83 ++++++++++++++++++++++++-------- 6 files changed, 134 insertions(+), 51 deletions(-) --- base-commit: 22e90ac5af46c01ee4972cf04e835266862bbb35 change-id: 20230707-py-inf-fixes-30615-668ef09475ab Best regards,