X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Recipient: djgpp AT delorie DOT com X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1599237355; bh=6iCLUmEktd+hdxuylcAHS4I/7NH7ghqKNn3Dswn9d+w=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=PBBwjY5G1ofdRIRhGDjHxffDOXJbbR7sSn5WU4jSec6Y/rJUsibUW3QR7pHzn/z5R /uqgLPumApMOVprGZ+dfrMjYLLaagxO6BjUJhmSVtNFPOdqxrUilenn/bqRwzt+52G XS5X5T9/zQLEZBqqDkR9HS1StZsoct52EtxMFvIo= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Subject: Re: Remote debugging To: djgpp AT delorie DOT com References: <20f9fc4e-bfab-c2af-38e8-c6a108555165 AT iki DOT fi> <693b6f14-7090-c696-4203-afc929670c0b AT gmx DOT de> <15faa9ee-c4e8-48d2-9a9b-d1de565cf690n AT googlegroups DOT com> From: "sleepy_dog AT gmx DOT de [via djgpp AT delorie DOT com]" Message-ID: <0cb7e6af-cdbc-31ed-b54b-72523f5347f9@gmx.de> Date: Fri, 4 Sep 2020 18:35:47 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <15faa9ee-c4e8-48d2-9a9b-d1de565cf690n@googlegroups.com> Content-Type: text/plain; charset=utf-8; format=flowed X-Provags-ID: V03:K1:lVh8A06REmRnh2DVOYtf+ihE811PPt7zL8XYO4JJjeXLLTNgtkA 7aq/dIh35oxFazo6WBfISrzVRc/6Y+4eDPYCZDFP3DmV2f9tLmLOp4NG1g/3FnmyyH0RAzf 5xuuR1pG2WUr0XECDsA4cuiRmLFcDxIttWlBEnr4Mi12uwDEcvr7Kfk0xdQKZDxP3xc8pAh 0Fr1BOUG7uGyrT/qC138A== X-Spam-Flag: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1MpzuVA8iEv bwaxUCN9tv2fWwWzWA/OmMtwnzJ9t5LeS3WZLPnzoY0/UwQ2CNe3h3pTCNBKt7XzcW0bLtS63 j8Nm655+WwlutF+N2r9v+tTqu6kJAZ9QfZCg+Fw6g7L8jFYOsga7yNXGdc5MRw9U1626EsK65 V6pGCK9a7iSH2+cOX3aPNCi/Ed4Hq5o3/oXf3lWT7TeQ5+R+5OTWrGzQqS43dAO4R37DKD55W xwWJy/RBizQd3TvXC Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id 084GaUWf018722 Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk Thanks for that info! I'll look into that. Single threaded, yeah. I don't think there is much to gain from using multiple threads for a program targeted for DOSBox, so I'm fine with that. pif0017 AT gmail DOT com wrote: > Le vendredi 4 septembre 2020 à 01:15:04 UTC+2, A. Wik (awik32 AT gmail DOT com) [via djgpp AT delorie DOT com] a écrit : >> Hi all, >> On Thu, 3 Sep 2020 at 22:55, sleep DOT DOT DOT AT gmx DOT de [via dj DOT DOT DOT AT delorie DOT com] >> wrote: >>> "Serial debugging" was mentioned, I at first thought this would work >>> similar, just using a serialconnection instead of ethernet. Apparently >>> it does not work the same way as you'd debug a program via gdbserver >>> running on a remote system. >>> I'm not familiar with that at all. Can someone point me to an explanation? > Gdb and gdbserver have conception problems and have quiet the same hardware requirements. Gdb teams try solve that since a long time by making them sharing more and more software but when djgpp was supported by gdb, gdbserver did not. Now, they simply drop djgpp support since version 8 or 9. > > To remote or cross debug, you have to build a cross gdb that target i586-msdos-djgpp. Gdb 7.12 is okay for that. > > To debug your program running on djgpp compliant environment, you have to embedded a gdbstub. You can find one on djgpp ftp. The stub will act like gdbserver by implementing gdb communication protocol but it will be a part of your program that will catch interruption and talk to gdb at this moment. > Stubs use serial connection because it use less hardware and software that tcp/IP over ethernet. > >>> Since I am somewhat familiar with gdb and it is very common, going a >>> route that rests on that would probably make most sense, even if it >>> works somewhat different on DOS. > The stubs on ftp doesn't implement all gdb features. It's okay for breakpoint, stepping, read and write memory, intercepted segmentation fault. Your program have to be single threaded, multi thread is not implemented. > > S. Guillaume > >