Recent

Author Topic: Debugging under DOS  (Read 467 times)

virtualhat

  • Newbie
  • Posts: 3
Debugging under DOS
« on: February 14, 2025, 09:47:11 pm »
I'm using the FPC IDE under DOS (go32v2), and I've noticed that I get "No debugger support available". Is there something I can do to enable this? I'm fairly sure this was working for me a few months ago, perhaps with an older version of FPC.

Environment:
P166 MMX - Win98
FPC 3.2.2

(also tried 3.3.1)

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12105
  • FPC developer.
Re: Debugging under DOS
« Reply #1 on: February 15, 2025, 02:13:06 pm »
Afaik no. For Go32v2 the commandline debugger can't be run via IPC, so must be linked in.

The fact that this surfaces only now, while the release is nearly 4 year old is, is a bit weird though.

Did you install the all-in one file, or the loose files?

virtualhat

  • Newbie
  • Posts: 3
Re: Debugging under DOS
« Reply #2 on: February 15, 2025, 11:33:02 pm »
I downloaded dos322full.zip from https://sourceforge.net/projects/freepascal/files/DOS_Go32v2/3.2.2/ and then unzipped it and set up the paths. More recently I've been compiling from source (from the 3.2.2 fixes branch). Both have the same problem.

virtualhat

  • Newbie
  • Posts: 3
Re: Debugging under DOS
« Reply #3 on: February 15, 2025, 11:45:11 pm »
Ok, I looked into this a bit more. I've been experimenting a bit with compiling my own builds of FP so I thought maybe I'd got mixed up, but can now confirm the following...

Dos320Full (from sourceforce) supports debugging under dos.
Dos322Full (from sourceforce) does not.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12105
  • FPC developer.
Re: Debugging under DOS
« Reply #4 on: February 15, 2025, 11:48:05 pm »
Debug support while compiling the sources depend on the presence of GDB in lib form (libgdb.a). So that doesn't really say much.

I looked around a bit, and on FPC ftp, in the /pub/fpc/dist/3.2.2/i386-go32v2/separate folder I found IDE files:

Quote
-rwxr-xr-x    1 fpc      fpc      75409564 Mar 25  2024 fp711.exe
-rwxr-xr-x    1 fpc      fpc      70814906 Mar 25  2024 fp7121.exe

I assume the number correspond to the build in GDB version. Good luck!

 

TinyPortal © 2005-2018