From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) by sourceware.org (Postfix) with ESMTPS id 8D32438555A0 for ; Wed, 23 Aug 2023 15:23:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8D32438555A0 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=palves.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-3fee51329feso26899305e9.0 for ; Wed, 23 Aug 2023 08:23:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692804195; x=1693408995; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jTutDOPF4ctc8/vZWDBnyIAGJu6O9kRinT5Y9bnAlpM=; b=ksVKaVtaCxzJzXNnF0qIRkyZTE/bfrSgEjk2gnlt6mH900qd+l5OMqFzKR+WPbf92B B89YijUriRo9ab4+BUIFwnU3xTt7vVtrBm5kt48EjTUes4uNG+78bN3TKmlO7811eUFq AYhEll+zxKkS1MH7xNZll1N4ZgRfZPUYCmLrC2bK0bJ/5COHc/PlzIqUM7aRBpIWujSb JtRv3Lysix60mKy3XKBQ73CtX8McZFG+4f7xR/BF2jrg2bdVBEO7Phge5z2SP9PeBGq1 bPTVxfVLE8DrbIlSJ7Xkj2JT5upYWJlH3UQmXzRFF8l7h70dpzc8ZprdliwEPljT5vBN BPPg== X-Gm-Message-State: AOJu0Yx/YMkoDNJZd6ZhktTqVktIE3QE/ebodjd9tOsha9OsMLtP/ekD uqznB9UX2zLxBAM+DkO7vl0ZZY/m+lFrdw== X-Google-Smtp-Source: AGHT+IEw+qvc4Z67XxJXVZT3pQQIsUNXporWdPgtOBYOOuQUicgcu+YjpqV2Ow27nNUcgzKvDFBTWA== X-Received: by 2002:a05:600c:4304:b0:3fe:1f70:9e54 with SMTP id p4-20020a05600c430400b003fe1f709e54mr9538400wme.4.1692804194935; Wed, 23 Aug 2023 08:23:14 -0700 (PDT) Received: from ?IPV6:2001:8a0:f90f:8600:1c58:11cc:d925:aeac? ([2001:8a0:f90f:8600:1c58:11cc:d925:aeac]) by smtp.gmail.com with ESMTPSA id u24-20020a05600c00d800b003fbe791a0e8sm19305635wmm.0.2023.08.23.08.23.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 23 Aug 2023 08:23:14 -0700 (PDT) Message-ID: <4037ca5e-4fd4-a01a-7dd4-d5cb941b2b8b@palves.net> Date: Wed, 23 Aug 2023 16:23:12 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH] gdb: fix build failure in amd-dbgapi-target.c Content-Language: en-US To: Lancelot Six , gdb-patches@sourceware.org Cc: lsix@lancelotsix.com References: <20230823145902.297879-1-lancelot.six@amd.com> From: Pedro Alves In-Reply-To: <20230823145902.297879-1-lancelot.six@amd.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,KAM_DMARC_STATUS,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,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 List-Id: On 23/08/23 15:59, Lancelot Six via Gdb-patches wrote: > Since b080fe54fb3 "gdb: add inferior-specific breakpoints", the > breakpoint class has an "inferior" member used to handle > inferior-specific breakpoints. This creates a compilation error > in amd_dbgapi_target_breakpoint::check_status which declares a local > variable "inferior *inf". > > Fix this by using "struct inferior *inf" instead. > > Change-Id: Icc4dc1ba96c7d3ff9d33f9cb384ffcf64eba26fb Approved-By: Pedro Alves Thanks, Pedro Alves