From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17513 invoked by alias); 25 Oct 2018 16:40:59 -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 17502 invoked by uid 89); 25 Oct 2018 16:40:59 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-vs1-f66.google.com Received: from mail-vs1-f66.google.com (HELO mail-vs1-f66.google.com) (209.85.217.66) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 25 Oct 2018 16:40:57 +0000 Received: by mail-vs1-f66.google.com with SMTP id y195so5931281vsc.7 for ; Thu, 25 Oct 2018 09:40:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Xl629lF64bqPTGFxxEPEQp12uCHAuVmuGJn21u/7CAE=; b=KPE2uCrCfKjUjxbU6AXj06Jg7c+6aYVSZz0zN21KxyNXUH2i6VyIQ2f6Usw6OjwG7v z+qnOE9zn9wM1tPa9udBfoqYcjIMAX4kGXDoZA1pSQcN4lar8OrBWLy0oKQHLLjGEMyp uN8GpYpYoHSPU3Jgz0agwGDNcAmNIScwRrKMOEFZNsS3Y+axKsYsupEQBmYVqzO04JZO oFvUBQ2trdK+dGkEGfD5mTuig5E3LG9amXPuJfY3AMz3WTMqX/Dlon7WKS6qJTCZ3stX wPyy3zPv/2F2KDzYnTDdYy3hyyXvYg32XKuDKbC20g2xUZ+DgTg4pzJvd/gOtuJuxizI QgEA== MIME-Version: 1.0 References: <20180808233908.8149-1-jimw@sifive.com> In-Reply-To: From: Jim Wilson Date: Thu, 25 Oct 2018 16:40:00 -0000 Message-ID: Subject: Re: [PATCH 4/5] RISC-V: Add native linux support. To: Andreas Schwab Cc: gdb-patches@sourceware.org, Andrew Burgess Content-Type: text/plain; charset="UTF-8" X-SW-Source: 2018-10/txt/msg00586.txt.bz2 On Thu, Oct 25, 2018 at 3:49 AM Andreas Schwab wrote: > 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. I just wrote a patch for that a couple of days ago but have been tied up with other things and haven't had a chance to submit it yet. It is effectively the same as the patch Andrew Burgess wrote, though I kept the braces. I also have a patch to support signal handler frames, and can now go up to where the signal occurred. Step into signal handler doesn't work, but I found a comment yesterday that says it isn't expected to work with software single stepping, so I will just submit what I already have, as apparently it is as good as it can be for now. Jim