IIRC we switched to dwarf a long time ago. We still use COFF for some internal things, but I think gdb doesn't need to worry about it any
more.
Ok thanks, I will propose a patch to remove the obsolete stuff from coffread.c. Is it fine if I CC you on it so you can verify that it
doesn't remove anything still important?
Simon Marchi <simon.marchi@polymtl.ca> writes:
Ok thanks, I will propose a patch to remove the obsolete stuff from
coffread.c. Is it fine if I CC you on it so you can verify that it
doesn't remove anything still important?
I've been out of the loop so long I don't think my opinion would be
useful any more ;-)
On 1/9/26 12:40 PM, DJ Delorie (dj@delorie.com) [via djgpp@delorie.com] wrote:
Simon Marchi <simon.marchi@polymtl.ca> writes:
Ok thanks, I will propose a patch to remove the obsolete stuff from
coffread.c. Is it fine if I CC you on it so you can verify that it
doesn't remove anything still important?
I've been out of the loop so long I don't think my opinion would be
useful any more ;-)
All right, thanks for the information :). I will do the change and hope
for the best (because I can't easily test).
In case you would like to update it, this section of the FAQ talks about
COFF and stabs debug info.
https://www.delorie.com/djgpp/v2faq/faq12_1.html
Simon
There's a few other communities that care about this toolchain. I'd ask that you make an announcement
there as well. I don't think COFF is a big part of their use cases but it might be helpful to announce anyways.
Date: Fri, 9 Jan 2026 12:25:50 -0500
From: "Simon Marchi (simon.marchi@polymtl.ca) [via djgpp@delorie.com]" <djgpp@delorie.com>
GDB maintainer here. I'm in the process of cleaning up obsolete things,
like debug info formats that are not longer relevant. I am now looking
at COFF [1]. I am wondering if this is still useful for DJGPP, or if nowadays you can use DWARF like most other targets (or if people use GDB
for DJGPP at all).
In the gcc source code [1] I see this, so I guess that DWARF 2 is the
default debug format now?
Date: Fri, 9 Jan 2026 12:39:22 -0500
From: "Simon Marchi (simon.marchi@polymtl.ca) [via djgpp@delorie.com]" <djgpp@delorie.com>
On 1/9/26 12:33 PM, DJ Delorie wrote:
IIRC we switched to dwarf a long time ago. We still use COFF for some internal things, but I think gdb doesn't need to worry about it any
more.
Ok thanks, I will propose a patch to remove the obsolete stuff from coffread.c. Is it fine if I CC you on it so you can verify that it
doesn't remove anything still important?
Date: Fri, 9 Jan 2026 12:53:24 -0500
From: "Simon Marchi (simon.marchi@polymtl.ca) [via djgpp@delorie.com]" <djgpp@delorie.com>
In case you would like to update it, this section of the FAQ talks about
COFF and stabs debug info.
https://www.delorie.com/djgpp/v2faq/faq12_1.html
Date: Fri, 9 Jan 2026 12:53:24 -0500
From: "Simon Marchi (simon.marchi@polymtl.ca) [via djgpp@delorie.com]" <djgpp@delorie.com>
In case you would like to update it, this section of the FAQ talks about
COFF and stabs debug info.
https://www.delorie.com/djgpp/v2faq/faq12_1.html
What do you think needs to be updated there? Old versions of GCC and
GDB, which support COFF and stabs debug info are still available from
the DJGPP download sites, so people could use them if they need that.
And the DWARF debug info is mentioned there already.
Date: Sat, 10 Jan 2026 09:24:18 -0500
From: "Simon Marchi (simon.marchi@polymtl.ca) [via djgpp@delorie.com]" <djgpp@delorie.com>
On 2026-01-10 04:21, Eli Zaretskii (eliz@gnu.org) [via djgpp@delorie.com] wrote:
Date: Fri, 9 Jan 2026 12:53:24 -0500
From: "Simon Marchi (simon.marchi@polymtl.ca) [via djgpp@delorie.com]" <djgpp@delorie.com>
In case you would like to update it, this section of the FAQ talks about >> COFF and stabs debug info.
https://www.delorie.com/djgpp/v2faq/faq12_1.html
What do you think needs to be updated there? Old versions of GCC and
GDB, which support COFF and stabs debug info are still available from
the DJGPP download sites, so people could use them if they need that.
And the DWARF debug info is mentioned there already.
Using a modern gcc, if somebody tries to use -gstabs as first suggested, won't they get an error saying it's not supported?
The text indeed talks about DWARF, but I interpreted it as "GCC doesn't currently support DWARF for DJGPP but it might one day". From what you
said, I understood thought that DWARF has been available for DJGPP for a
long time now.
Also, don't forget the Free Pascal (Go32v2) and FreeBASIC compilers.
(But I'd have to check what specific GDB versions they come with.)
Hi again,
On Fri, Jan 9, 2026 at 10:33rC>PM Rugxulo <rugxulo@gmail.com> wrote:
Also, don't forget the Free Pascal (Go32v2) and FreeBASIC compilers.
(But I'd have to check what specific GDB versions they come with.)
FreeBASIC 1.10.1 (2023-12-24) comes with GDB 7.7.1 circa 2014 (built?? 2023-12-22), stub says "2.05" (2015-06-08).
Free Pascal 3.2.2 (from 2021) has GDB 8.0.1 (circa 2017) but dated 2021.
Hi,
GDB maintainer here. I'm in the process of cleaning up obsolete things,
like debug info formats that are not longer relevant. I am now looking
at COFF [1]. I am wondering if this is still useful for DJGPP, or if nowadays you can use DWARF like most other targets (or if people use GDB
for DJGPP at all).
In the gcc source code [1] I see this, so I guess that DWARF 2 is the
default debug format now?
/* Support generation of DWARF2 debugging info. */
#define DWARF2_DEBUGGING_INFO 1
#undef PREFERRED_DEBUGGING_TYPE
#define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
...
/* Don't emit DWARF3/4 unless specifically selected. */ \
/* DWARF3/4 currently does not work for DJGPP. */ \
if (!OPTION_SET_P (dwarf_version)) \
dwarf_version = 2; \
\
} \
Note that I am only talking about the debug info aspects of COFF,
there are probably some things in coffread.c that would still be needed
in order to read executable files on Windows and/or DJGPP.
Thanks,
Simon
[1]https://gitlab.com/gnutools/gcc/-/blob/c10076b34d3ede485bfb306b2a91feeee8368cd5/gcc/config/i386/djgpp.h#L20-24
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 54 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 15:41:53 |
| Calls: | 742 |
| Files: | 1,218 |
| D/L today: |
3 files (2,681K bytes) |
| Messages: | 184,203 |
| Posted today: | 1 |