Date: Thu, 14 Jan 1999 09:44:57 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Jonathan Brogdon cc: djgpp AT delorie DOT com Subject: Re: DJGPP, GDB and Remote Targets In-Reply-To: <369CCD4C.9675B5A7@email.sps.mot.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com On Wed, 13 Jan 1999, Jonathan Brogdon wrote: > I would like to use GDB (DJGPP version) on my pc to debug a remote > single board pc target over the serial port. Has anyone ever tried this > and/or seen it work? I realize that I will have to link in the stubs in > my target. I was assuming that these stubs have been written. It was done at some point, long time ago, but that was with DJGPP v1.x. Since hooking hardware interrupts is quite different with DJGPP v2, the old code won't work, and nobody (AFAIK) has rewritten it for v2. It shouldn't be too hard, though: you can use one of the available packages for async communications that are in the v2tk directory on SimTel.NET mirrors (check out section 22.3 of the FAQ for the exact pointers). > I have looked through the GDB 4.16 source from the Delorie web site, and > tried to simply build the gdb binary, but it failed. It looks as though > several files called out in the configuration batch and script files > have been shortened (I'm not talking about an LFN problem here, I have > that configured correctly for DJGPP--the short file names are similar to > the long file name, but they have been abbreviated). I tried to fix > these problems as I found them, and mad some progress, but I was still > unable to build the binary. Any ideas? I have successfully built GDB, both in plain DOS and in Windows 9X. If you have LFN-related problems, the easiest way out is to set LFN=n in the environment before building. If this doesn't help, please describe the problems in more detail.