From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id 4D72B385781B for ; Thu, 24 Sep 2020 15:44:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 4D72B385781B Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=simark.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=simark@simark.ca Received: from [10.0.0.11] (173-246-6-90.qc.cable.ebox.net [173.246.6.90]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id 0398C1E8D0; Thu, 24 Sep 2020 11:44:46 -0400 (EDT) Subject: Re: [PATCH v3] [gdb] Add Z80 CPU basic support To: Sergey Belyashov , gdb-patches@sourceware.org References: <34795027-0954-e286-dc1a-1f810a8ff6e1@simark.ca> <20200924152239.93083-1-Sergey.Belyashov@gmail.com> From: Simon Marchi Message-ID: <5a120c4d-630a-08f5-fb81-d35237267adb@simark.ca> Date: Thu, 24 Sep 2020 11:44:45 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20200924152239.93083-1-Sergey.Belyashov@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: fr Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, NICE_REPLY_A, SPF_HELO_PASS, 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: Thu, 24 Sep 2020 15:44:47 -0000 On 2020-09-24 11:22 a.m., Sergey Belyashov via Gdb-patches wrote: > Supported ISAs: > - Z80 (all undocumented instructions) > - Z180 > - eZ80 (Z80 mode only) > > Datasheets: > Z80: https://www.zilog.com/manage_directlink.php?filepath=docs/z80/um0080&extn=.pdf > Z180: https://www.zilog.com/manage_directlink.php?filepath=docs/z180/ps0140&extn=.pdf > eZ80: http://www.zilog.com/force_download.php?filepath=YUhSMGNEb3ZMM2QzZHk1NmFXeHZaeTVqYjIwdlpHOWpjeTlWVFRBd056Y3VjR1Jt > > To debug Z80 programs using GDB you must configure and embed > z80-stub.c to your program (SDCC compiler is required). Or > you may use some simulator with GDB support. 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? Simon