[Issue 14225] [REG2.067a] GDB: error reading variable (string + dup)

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Mar 9 15:28:12 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=14225

--- Comment #7 from Martin Nowak <code at dawg.eu> ---
For yet unknown reason gdb reads an incorrect sizeof for the .length variable
of the string. This only applies to the arrays in main not the ones passed to
the dup functions.
It also works in lldb.

It would be more optimal if dmd cached and emitted only a single instance per
array type. Will try to implement that and see if it helps before spending more
hours debugging gdb.

--


More information about the Digitalmars-d-bugs mailing list