From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from imta-38.everyone.net (imta-36.everyone.net [216.200.145.36]) by sourceware.org (Postfix) with ESMTPS id DBD6D393BC09 for ; Fri, 20 Nov 2020 15:48:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org DBD6D393BC09 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=lcwb.coop Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rodney_bates@lcwb.coop Received: from pps.filterd (omta002.sj2.proofpoint.com [127.0.0.1]) by imta-38.everyone.net (8.16.0.43/8.16.0.43) with SMTP id 0AKFSNVB012083 for ; Fri, 20 Nov 2020 07:48:05 -0800 X-Eon-Originating-Account: dE_9wH0j5mL-Ait820cRmrDb5ELoA7scWB4LVXbLMhYNQJcqtr2vTkrgS_eiS-Ox X-Eon-Dm: m0116953.ppops.net Received: by m0116953.mta.everyone.net (EON-AUTHRELAY2 - acf3c47e) id m0116953.5f8a0276.77947d for ; Fri, 20 Nov 2020 07:48:02 -0800 X-Eon-Sig: AQNpay9ft+UyVcr9CgIAAAAB,1906c3a8c797a8af232f2c2eefcb35d4 X-Eip: dEw3pww6dTQyKm0W1z7T2ezOarvCRkwlrChteLvO2VY Reply-To: rodney.m.bates@acm.org Subject: Re: I compile gdbserver for RISCV on gdb10.1 version, and there is a error To: gdb@sourceware.org References: <20201116133833.1659C5D000A6@webmail.sinamail.sina.com.cn> From: "Rodney M. Bates" Message-ID: <1937fc1e-0ade-8132-87bc-a4cf7829e32d@lcwb.coop> Date: Fri, 20 Nov 2020 09:47:56 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.312, 18.0.737 definitions=2020-11-20_08:2020-11-20, 2020-11-20 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 spamscore=0 clxscore=1011 bulkscore=0 phishscore=0 malwarescore=0 adultscore=0 mlxlogscore=726 mlxscore=0 lowpriorityscore=0 priorityscore=1501 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2011200106 X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, NICE_REPLY_A, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Nov 2020 15:48:08 -0000 On 11/16/20 3:55 PM, Jim Wilson wrote: > On Mon, Nov 16, 2020 at 5:38 AM wrote: > >> So do you mean that the gdb for RISCV on some project is not supported, >> because these projects still use the old linux kernel system. >> >> Now i am working on "https://github.com/pulp-platform/ariane-sdk" >> project, and the project still use the old linux kernel system, so the gdb >> on the platform is not available. >> > > If you have an old linux kernel, gdb will not work due to bugs in the linux > kernel ptrace support. I submitted two patches to fix two problems in Fall > 2018. Then there was a third patch to add support for FP registers but you > only need that one if you want to look at FP registers. You definitely How old a Linux kernel has these bugs? > need the first two patches in the kernel. > > Jim > -- Rodney Bates rodney.m.bates@acm.org