From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 125649 invoked by alias); 10 Oct 2016 19:46:38 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 125639 invoked by uid 89); 10 Oct 2016 19:46:37 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.7 required=5.0 tests=AWL,BAYES_20,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM autolearn=no version=3.3.2 spammy=Question, sounded, dual, sk:duaned X-HELO: mail-io0-f181.google.com Received: from mail-io0-f181.google.com (HELO mail-io0-f181.google.com) (209.85.223.181) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 10 Oct 2016 19:46:27 +0000 Received: by mail-io0-f181.google.com with SMTP id i202so3586778ioi.2 for ; Mon, 10 Oct 2016 12:46:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=am+QzkP1TkRTeOeEh92SccP8OKQePHxiyPGis0sgIUQ=; b=SbDthzNkxBEVDQoXwn7g3I4eOrFLwcNhrPIID3ILgnTT1XaDqH0g1LRf7EaiL6nJdV 1/U/hnIt9W7tLM60W9a+VgIoYZ4sR7HHDZwHmyw7lN6cJM/LLEN/dWWzdIH8ixHLtGa7 1pkY2LwT52gcm8E2M4/Apk6QtxzMjQLgTbDXL/yMuIYG0xWBr37EGPTGIbHHL7AUWOWu +W9xExD1Gi6oBdTfeDyeLSF8fb9M22bffY0xP9dIdGhejFkLI3OZxmtZp6KDp+AsSO5Y KMQFJ8U0QdmbBhr0J437X1G62wXZ/DPx8zPMH7sDfhmhnPQTjAvWNst1RMKaGKYwIpjH U8Lw== X-Gm-Message-State: AA6/9RkvmiGxbpT37/ahtN7lvsKs2mg8ggq3FxzcEoujp7XmqkuyMT/zZ8Qh0ALJwPPq8i9/D/vZeMRfoEWreg== X-Received: by 10.107.62.11 with SMTP id l11mr749471ioa.181.1476128785769; Mon, 10 Oct 2016 12:46:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.17.41 with HTTP; Mon, 10 Oct 2016 12:46:25 -0700 (PDT) In-Reply-To: <20161010094844.5c1bb9f86d671edec44bb378f25c04cc.aef8a9655c.wbe@email03.godaddy.com> References: <20161010094844.5c1bb9f86d671edec44bb378f25c04cc.aef8a9655c.wbe@email03.godaddy.com> From: Tim Newsome Date: Mon, 10 Oct 2016 19:46:00 -0000 Message-ID: Subject: Re: can target code change architecture setting? To: duane@duaneellis.com Cc: Yao Qi , gdb Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2016-10/txt/msg00019.txt.bz2 On Mon, Oct 10, 2016 at 9:48 AM, wrote: > Question #1 Is this dual mode possible in RISCV? Not currently, and I don't think there will be a dual mode. There was a proposal that should allow 32-bit code to just work on 64-bit architectures, but I'm pretty sure it was not by adding a different mode. It sounded more like the MIPS model where the ISA is cleverly defined to not care. But unfortunately I can't find the e-mail thread right now. > Question #2 - How should the remote debugger respond to GDB? For RISCV, what I would want is for it to tell GDB that it's running on 64-bit hardware, because it is. I see no reason to hide from the user what's actually happening in the hardware. Tim