From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id 22582385B800 for ; Mon, 6 Mar 2023 21:15:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 22582385B800 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=simark.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=simark.ca Received: from [10.0.0.11] (unknown [217.28.27.60]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id 88F7B1E0D3; Mon, 6 Mar 2023 16:15:04 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1678137304; bh=cQuvOZCQGtG+RQ+om3/NNiieceGaZo7ujr5QwonKZ1U=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=tLVGH6ut1m4cBXICslUMxnUhqc9t0fBJvNytnOPY85GaxoTJfX8pQXUKx5Je6G8iu np0RqtzGfskFYDWAyx4jIyxyRbkFMEP0oX2ekOJgv4iJ6OBiGL9gtVkOk1UD8dCFFO qnf7et1UD9UB8KpNu+7PcA9ymVBARu9WUTbcFE9A= Message-ID: <335748bd-8dc8-3a8c-734f-114dc4464d2c@simark.ca> Date: Mon, 6 Mar 2023 16:15:04 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCHv2 5/5] gdb: add gdbarch::displaced_step_buffer_length Content-Language: en-US To: Andrew Burgess , gdb-patches@sourceware.org Cc: Simon Marchi References: <4d9f698341b49f6f0c58537a46caf30b953d17ca.1678116328.git.aburgess@redhat.com> From: Simon Marchi In-Reply-To: <4d9f698341b49f6f0c58537a46caf30b953d17ca.1678116328.git.aburgess@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-10.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,NICE_REPLY_A,SPF_HELO_PASS,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: > diff --git a/gdb/linux-tdep.c b/gdb/linux-tdep.c > index e6ce13a1c67..ce48515d8ca 100644 > --- a/gdb/linux-tdep.c > +++ b/gdb/linux-tdep.c > @@ -2603,7 +2603,7 @@ linux_displaced_step_prepare (gdbarch *arch, thread_info *thread, > at DISP_STEP_BUF_ADDR. They are all of size BUF_LEN. */ > CORE_ADDR disp_step_buf_addr > = linux_displaced_step_location (thread->inf->gdbarch); > - int buf_len = gdbarch_max_insn_length (arch); > + int buf_len = gdbarch_displaced_step_max_buffer_length (arch); There are a few places that still use the old name. Simon