Groups | Search | Server Info | Login | Register


Groups > comp.os.msdos.djgpp > #9978

Supported debug info formats

Message-ID <0752ebcc-24dd-4ea1-ad68-7822463d0eda@polymtl.ca> (permalink)
Date 2026-01-09 12:25 -0500
From "Simon Marchi (simon.marchi@polymtl.ca) [via djgpp@delorie.com]" <djgpp@delorie.com>
Subject Supported debug info formats
Newsgroups comp.os.msdos.djgpp
Organization None provided

Show all headers | View raw


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

Back to comp.os.msdos.djgpp | Previous | NextNext in thread | Find similar


Thread

Supported debug info formats "Simon Marchi (simon.marchi@polymtl.ca) [via djgpp@delorie.com]" <djgpp@delorie.com> - 2026-01-09 12:25 -0500
  Re: Supported debug info formats "Eli Zaretskii (eliz@gnu.org) [via djgpp@delorie.com]" <djgpp@delorie.com> - 2026-01-10 11:10 +0200
  Re: Supported debug info formats "Robert Sundling (rjs-djgpp@zensoft.com) [via djgpp@delorie.com]" <djgpp@delorie.com> - 2026-01-12 16:50 -0600

csiph-web