Dwarf 3 and Variant types
Original Reporter info from Mantis: Martin @martin_frb
-
Reporter name: Martin Friebe
Original Reporter info from Mantis: Martin @martin_frb
- Reporter name: Martin Friebe
Description:
Variant used to be encoded as record under dwarf 2 and stabs.
It fails with dwarf 3
GDB claims the record has no fields
Tested with the special patched gdb supplied by Joost
var
ArgVariantInt: Variant;
ArgVariantString: Variant;
Additional information:
results with fpc trunk 16754
&LtPos;ptype ArgVariantInt>
&"ptype ArgVariantInt\n"
~"type = Variant = record \n"
~" &LtPos;no data fields>\n"
~"end\n"
^done
(gdb)
&LtPos;ptype ArgVariantString>
&"ptype ArgVariantString\n"
~"type = Variant = record \n"
~" &LtPos;no data fields>\n"
~"end\n"
^done
(gdb)
&LtPos;whatis ArgVariantInt>
&"whatis ArgVariantInt\n"
~"type = Variant\n"
^done
(gdb)
&LtPos;whatis ArgVariantString>
&"whatis ArgVariantString\n"
~"type = Variant\n"
^done
(gdb)
<-data-evaluate-expression ArgVariantInt>
^done,value="{}"
(gdb)
<-data-evaluate-expression ArgVariantString>
^done,value="{}"
(gdb)
Mantis conversion info:
- Mantis ID: 18509
- OS: win
- OS Build: vista
- Build: 16754
- Platform: w32
- Version: 2.5.1