[Bug pascal/33617] [gdb, pascal, fpc] Testsuite failures when using -gw3 and -gw4

vries at gcc dot gnu.org sourceware-bugzilla@sourceware.org
Fri Nov 14 13:37:08 GMT 2025


https://sourceware.org/bugzilla/show_bug.cgi?id=33617

--- Comment #6 from Tom de Vries <vries at gcc dot gnu.org> ---
(In reply to Tom de Vries from comment #5)
> Workaround for dwarf 4 problem:
> ...
> diff --git a/gdb/dwarf2/line-header.c b/gdb/dwarf2/line-header.c
> index 46523069337..f96580d106d 100644
> --- a/gdb/dwarf2/line-header.c
> +++ b/gdb/dwarf2/line-header.c
> @@ -328,7 +328,7 @@ dwarf_decode_line_header (sect_offset sect_off, bool
> is_dwz,
>    lh->minimum_instruction_length = read_1_byte (abfd, line_ptr);
>    line_ptr += 1;
>  
> -  if (lh->version >= 4)
> +  if (false && lh->version >= 4)
>      {
>        lh->maximum_ops_per_instruction = read_1_byte (abfd, line_ptr);
>        line_ptr += 1;
> ...
> 
> So that looks like an fpc bug.

Should be fixed in v3.2.4 by:
...
commit b313a66a47822b0648e25f49ee60ec1719d1443e
Author: florian <florian@freepascal.org>
Date:   Thu May 23 22:54:30 2024 +0200

      * correct Dwarf-4 line info header as noted by Martin on the mailing list
...

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Gdb-prs mailing list