From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id KBFXGlXlbV/kHAAAWB0awg (envelope-from ) for ; Fri, 25 Sep 2020 08:40:53 -0400 Received: by simark.ca (Postfix, from userid 112) id 5B6231EF4B; Fri, 25 Sep 2020 08:40:53 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id A1CCE1E599 for ; Fri, 25 Sep 2020 08:40:52 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3647E386F81A; Fri, 25 Sep 2020 12:40:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3647E386F81A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1601037652; bh=pC2n5MjPqhfAqVmnX16fLAvTAeIfo8N6239GpbQ0fDw=; h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=CAuHFt0fR0XcGAO4Vv/WgZDru6nwwL78zGfUVC8Bp+6BpORG6ADjyH9RI7FFUmCvG B9itvR/6reXHi3em+c9cDL5D3JRet51Nbxttdv/ixAvPfeXtywy1ZX4uu6rFHWf9Ui MOsG3LS3hEIu7QFbR0UIyWXAlzPfIFsfr3fiS92U= Received: from mail-qk1-x743.google.com (mail-qk1-x743.google.com [IPv6:2607:f8b0:4864:20::743]) by sourceware.org (Postfix) with ESMTPS id BA82B386F81A for ; Fri, 25 Sep 2020 12:40:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org BA82B386F81A Received: by mail-qk1-x743.google.com with SMTP id d20so2578062qka.5 for ; Fri, 25 Sep 2020 05:40:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=pC2n5MjPqhfAqVmnX16fLAvTAeIfo8N6239GpbQ0fDw=; b=Gnp+iorDNxdb2uZpRpyw21m2lbIUP4jCGXeuH2sUymh4gjv2QnzPlYxKn909pNaX+Z Tcbp1tjf31B5XDzt65CpuYhqME8L15TD9Gh2k+8OREoBTa4XkzLZvZdBMRTKRT85+IKZ Fdo4og68i1KhFq40AfvyboNjCPx0PMuhudlJwIJaOLFsXja/tSI3mqykPGtX+z23Opmx sXIWrtmHmyrRpeWnIye8tHmdeVXeNfHrG70I9AFOIaDZsVLrrbs3IMpS/w349DnKmkf/ pP58zyhM3OZmxbC3AAdSSmTcsiLaYrv+m9pfk1I8LAtedk5i7eFQe8mtXEVJyO53bL9c EX2A== X-Gm-Message-State: AOAM531BJKD9nA8icf24FYX8w4wqHHxE/rc/+iDa4x4sUyUUFXo0llh3 QG/eQE7ZKiw3XI695XM9gPwneLtsYFpWjObdMYidiODWofs= X-Google-Smtp-Source: ABdhPJyqqwpbiAaH3flTDuP2weZizpMD9LpcHTL++FQTxTFoZ7rWpFFCbEIYV1Puu50ItkmoBQKgszFBa+vYGbW+Jnc= X-Received: by 2002:a05:620a:103c:: with SMTP id a28mr3766807qkk.376.1601037649008; Fri, 25 Sep 2020 05:40:49 -0700 (PDT) MIME-Version: 1.0 References: <34795027-0954-e286-dc1a-1f810a8ff6e1@simark.ca> <20200924152239.93083-1-Sergey.Belyashov@gmail.com> <5a120c4d-630a-08f5-fb81-d35237267adb@simark.ca> In-Reply-To: <5a120c4d-630a-08f5-fb81-d35237267adb@simark.ca> Date: Fri, 25 Sep 2020 15:40:37 +0300 Message-ID: Subject: Re: [PATCH v3] [gdb] Add Z80 CPU basic support To: gdb-patches@sourceware.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Sergey Belyashov via Gdb-patches Reply-To: Sergey Belyashov Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" > GCC is not required, it is possible to write a board file that specifies > another compiler. It would be good to have a board file that allows a > developer to test a change against Z80. A bit like > testsuite/boards/simavr.exp for AVR. There is no gdb-compatible simulator yet. > So, do we need to mention eZ80 at all? Can't we just talk about Z80 and > never talk about eZ80? eZ80 in Z80 mode has additional instructions. Theoretically, GDB may support eZ80 in ADL mode too, but I do not test it (I have no simulator and device). > Ok, it would be good to give an example of how to use it, otherwise it's > pretty much dead code (like all other files in this directories are). I will add a small instruction on how to embed it to the project to the stub source. > Most people won't actually have a device and setup to play with. Would > it be possible to provide some explicit/clear steps for somebody to run > and debug an hello world program using any simulator? Either using the > stub you have provided, or I see there's a qemu Z80 port, does it work > to debug against that? There is a modified version required: https://github.com/b-s-a/qemu-z80 but it is based on a qemu snapshot from 2012 year and does not work for me. Best regards, Sergey Belyashov