From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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> From: Sergey Belyashov 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-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, 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-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: , X-List-Received-Date: Fri, 25 Sep 2020 12:40:51 -0000 > 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