[PATCH] gas: Add --gcodeview option

Nick Clifton nickc@redhat.com
Mon Nov 21 14:53:13 GMT 2022


Hi Mark,

> This patch adds a --gcodeview option to as, which causes it to emit a
> .debug$S section with line number details in Microsoft's CodeView
> format. My upcoming PDB patches to ld will parse these so they can be
> read by windbg etc.

I encountered one new assembler testsuite failure whilst testing this
patch locally:

   FAIL: Failed to extract .debug$S section from codeview1.o

The lines before it showed a confusing error message:

   Executing on host: sh -c {objcopy --dump-section .debug\$S=tmpdir/codeview-debug tmpdir/codeview1.o 2>&1}  /dev/null dump.out (timeout = 300)
spawn [open ...]

   objcopy: tmpdir/codeview1.o: can't dump section '.debug$S' - it does not exist: file format not recognized

This was using a toolchain configured as --target=x86_64-w64-mingw32

Could you look into this please ?

Cheers
   Nick



More information about the Binutils mailing list