Record pointer for watching fields
Original Reporter info from Mantis: nanobit @nanobit
-
Reporter name:
Original Reporter info from Mantis: nanobit @nanobit
- Reporter name:
Description:
Gdb with fpdebug
All gdb/dwarf versions.
Debugger requires dereference (^) operator for watching record fields,
despite autoderef mode or delphi mode.
Steps to reproduce:
program project1;
//{$mode delphi}
{$modeswitch autoderef}
uses
typinfo;
var
pi: PTypeInfo;
begin
pi := TObject.ClassInfo;
assert( pi^.kind = tkClass); // pi^.kind watch is ok
assert( pi.kind = tkClass); // pi.kind watch is wrong:
// with gdb with fpdebug: &LtPos;Error: Cannot get member "Kind" from none structure type: pi>
// But pi.kind watch is ok with "gdb without fpdebug".
end.
Additional information:
Note: pi.name (shortstring) has more issues than pi.kind, which adds string issue.
Therefore I restricted the report to single (?) cause.
Mantis conversion info:
- Mantis ID: 35719
- OS: Windows
- OS Build: 10
- Platform: win32
- Version: 2.0.2