[Bug gdb/25102] New: internal-error: bool value_contents_bits_eq(const value*, int, const value*, int, int): Assertion `offset2 + length <= TYPE_LENGTH (val2->enclosing_type) * TARGET_CHAR_BIT' failed

gdb.bugs at mfriebe dot de sourceware-bugzilla@sourceware.org
Mon Oct 14 23:12:00 GMT 2019


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

            Bug ID: 25102
           Summary: internal-error: bool value_contents_bits_eq(const
                    value*, int, const value*, int, int): Assertion
                    `offset2 + length <= TYPE_LENGTH
                    (val2->enclosing_type) * TARGET_CHAR_BIT' failed
           Product: gdb
           Version: 8.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: gdb.bugs at mfriebe dot de
  Target Milestone: ---

compile the below with fpc 3.0.4
command-line option  -gw3  
(for dwarf 3)

As soon as a is assigned 
try

-data-evaluate-expression A^

The ^ deref is needed, so the structure is printed, instead just the pointer

This prints b as structure: -data-evaluate-expression B^
This prints the address of the structure b: -data-evaluate-expression B


program Project1;
type
  t = class
    i: Integer;
    x: array of word;
  end;
  t2 = class
    i: Integer;
    x: word;
  end;
var
  a: t;
  b: t2;
begin
  a:= t.Create;
  b:= t2.Create;
  SetLength(a.x, 20);
end.

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


More information about the Gdb-prs mailing list