From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 75709 invoked by alias); 25 Oct 2018 10:49:14 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 75699 invoked by uid 89); 25 Oct 2018 10:49:13 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS autolearn=ham version=3.3.2 spammy=ptrace X-HELO: mx1.suse.de Received: from mx2.suse.de (HELO mx1.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 25 Oct 2018 10:49:12 +0000 Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 81E5DAE6C; Thu, 25 Oct 2018 10:49:10 +0000 (UTC) From: Andreas Schwab To: Jim Wilson Cc: gdb-patches@sourceware.org Subject: Re: [PATCH 4/5] RISC-V: Add native linux support. References: <20180808233908.8149-1-jimw@sifive.com> X-Yow: If I have enough money to buy 5,000 CANS of NOODLE-RONI, can I get a VAT of MARSHMALLOW FLUFF free?? Date: Thu, 25 Oct 2018 10:49:00 -0000 In-Reply-To: <20180808233908.8149-1-jimw@sifive.com> (Jim Wilson's message of "Wed, 8 Aug 2018 16:39:08 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2018-10/txt/msg00569.txt.bz2 On Aug 08 2018, Jim Wilson wrote: > + if ((regnum == RISCV_CSR_MISA_REGNUM) > + || (regnum == -1)) > + { > + /* TODO: Need to add a ptrace call for this. */ > + regcache->raw_supply_zeroed (regnum); ../../gdb/gdb/regcache.c:337: internal-error: void reg_buffer::assert_regnum(int) const: Assertion `regnum >= 0' failed. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."