www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2017/03/20/09:45:09

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Received: by 10.107.28.14 with SMTP id c14mr7554625ioc.95.1490016781486;
Mon, 20 Mar 2017 06:33:01 -0700 (PDT)
X-Received: by 10.157.31.39 with SMTP id x36mr1624715otd.12.1490016781445;
Mon, 20 Mar 2017 06:33:01 -0700 (PDT)
Newsgroups: comp.os.msdos.djgpp
Date: Mon, 20 Mar 2017 06:33:01 -0700 (PDT)
In-Reply-To: <ca212526-bb97-487b-98d4-f8ab693b8537@googlegroups.com>
Complaints-To: groups-abuse AT google DOT com
Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=84.82.215.132;
posting-account=JWQfLgoAAAC8QKtkzNbcIxeduALJ3mlU
NNTP-Posting-Host: 84.82.215.132
References: <ca212526-bb97-487b-98d4-f8ab693b8537 AT googlegroups DOT com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1bbd59c7-5ccd-40ec-8ede-a7f0b1d6661f@googlegroups.com>
Subject: Re: gdbserver for DOS?
From: "jwjagersma AT gmail DOT com [via djgpp AT delorie DOT com]" <djgpp AT delorie DOT com>
Injection-Date: Mon, 20 Mar 2017 13:33:01 +0000
Bytes: 2334
Lines: 19
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id v2KDj29X007952
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

On Monday, 20 March 2017 11:02:30 UTC+1, Daniel  wrote:
> I'm porting a game to DOS and find myself incapable of debugging it using what's available because gdb is lacking it's accompanying build of gdbserver.  I tried to cross-compile it myself but partway through it bails out because it seems to think I should have pwd.exe on Linux.  If someone could post either how to cross-compile gdb/gdbserver or simply post a build of gdbserver for DOS, I would be grateful.
> 
> Is there a reason DJGPP doesn't include gdbserver with gdb?  It would make debugging graphical programs for DOS much easier for everyone.

I tried compiling gdbserver once, and the error message I got said "target not supported". So there's that :(
Funny coincidence though, right now I am working on implementing the gdb remote protocol myself. As far as I can tell that's the only way to debug djgpp programs over a remote connection. The protocol itself isn't too difficult, but juggling exception frames around can be a bit tricky.

https://github.com/jwt27/libjwdpmi/blob/master/src/debug.cpp
Please excuse my shameless self-promotion.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019