From patchwork Mon Mar 20 16:19:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 66650 Return-Path: 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 961DF385116B for ; Mon, 20 Mar 2023 16:20:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 961DF385116B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1679329218; bh=lrLPqfA2Zo6Vwd/mZH3mbIaYbyD8x+zDAA20wwD2iJM=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=ShdkzY0oPS494AUGbRUgr7lb8YI63STQA/AEgiaBdQYJCZGW99uZvWg7QSI5sJxkG QKl8zkt1FCnRS+LyaJRVtUXYx1znniY9nn2aPm29or1EgyCw+32+AXjxYS03J0HvYr IoJZMt5K3+jXtRmE/3S2uIuhS0nM3GW3gBJIlZl8= X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from mail-il1-x135.google.com (mail-il1-x135.google.com [IPv6:2607:f8b0:4864:20::135]) by sourceware.org (Postfix) with ESMTPS id 492213858413 for ; Mon, 20 Mar 2023 16:19:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 492213858413 Received: by mail-il1-x135.google.com with SMTP id l9so6731573iln.1 for ; Mon, 20 Mar 2023 09:19:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679329193; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=lrLPqfA2Zo6Vwd/mZH3mbIaYbyD8x+zDAA20wwD2iJM=; b=aue/fz9A+8yVr+WXkyrQ9H0ZWtKqDm4wOsvYsw9fsHXmdG73gWtf0Y+kK22wSafcOm svwNhP/8dx88ebw86pUGCTqNsoNn1nk2Ky+EItMg85BJOhmJqvRnB6AG5vSp5FZ4nn4i /y18nXzBC9xVlhw2cbsSji0u/vjU5nsFIngVS0E29fgFZnq9DgC5d+0aoxjjyV/exhZ1 SbBgAXv+Vy/+yqsrqbxweC1HkUQiXjnQMOZzZJeBHPFjkqs53nnlIGWZPlX0Lrtt47Gg fExl+hz2F/2/JqizqvkMetn7nkLWqB8AXp7YkVDZoFFU8ecuxgk4qnhvhjTrjgbEZZpT FBNA== X-Gm-Message-State: AO0yUKU1pYDaHO3XwINvWt+RfLsAuoDbh8TcqiCeAHsELZhzCTrEPeUb 9E3ziH/CmmkDXfjg/ZDB8SYz3NBDKGbsKTwd9lF38g== X-Google-Smtp-Source: AK7set9EBatUpFwjqcbemEGmVqh7O3bpoVsV4RZukJGr8zUourrBi2mKsrBkm3CB5NQQoun41gciYQ== X-Received: by 2002:a92:7609:0:b0:323:7a4:808a with SMTP id r9-20020a927609000000b0032307a4808amr4959785ilc.11.1679329193271; Mon, 20 Mar 2023 09:19:53 -0700 (PDT) Received: from localhost.localdomain (71-211-185-113.hlrn.qwest.net. [71.211.185.113]) by smtp.gmail.com with ESMTPSA id d123-20020a026281000000b003c4eb8f862fsm3386194jac.66.2023.03.20.09.19.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Mar 2023 09:19:52 -0700 (PDT) To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH] Update python-helper.exp for type allocation changes Date: Mon, 20 Mar 2023 10:19:43 -0600 Message-Id: <20230320161943.1494343-1-tromey@adacore.com> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 X-Spam-Status: No, score=-11.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Tom Tromey via Gdb-patches From: Tom Tromey Reply-To: Tom Tromey Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" The type allocation changes introduced a failure in python-helper.exp that I did not notice. The bug is that, with these patches, arch-allocated integer types have a TYPE_SPECIFIC_INT object attached. This patch updates the test to allow this. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=30253 --- gdb/testsuite/gdb.gdb/python-helper.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/testsuite/gdb.gdb/python-helper.exp b/gdb/testsuite/gdb.gdb/python-helper.exp index dbd78cbcf78..a58e3b601df 100644 --- a/gdb/testsuite/gdb.gdb/python-helper.exp +++ b/gdb/testsuite/gdb.gdb/python-helper.exp @@ -145,7 +145,7 @@ proc test_python_helper {} { " flags = \[^\r\n\]+," \ " owner = $hex \\(gdbarch\\)," \ " target_type = 0x0," \ - " type_specific_field = TYPE_SPECIFIC_NONE}"] + " int_stuff = { bit_size = $decimal, bit_offset = $decimal }}"] gdb_test -prompt $outer_prompt_re "print *val->m_type->main_type" $answer "pretty print type->main_type" # Send the continue to the outer GDB, which resumes the inner GDB,