FpDebug: add DW_OP_stack_value

This commit is contained in:
Martin 2024-05-20 20:02:51 +02:00
parent 6c0ae5a584
commit 45094bcabe
2 changed files with 8 additions and 0 deletions

View File

@ -381,6 +381,8 @@ const
DW_OP_form_tls_address = $9b; // 0
DW_OP_call_frame_cfa = $9c; // 0
DW_OP_bit_piece = $9d; // 2
// --- DWARF4 ---
DW_OP_stack_value = $9f; // 0
// --- ---
DW_OP_lo_user = $e0; //
DW_OP_hi_user = $ff; //

View File

@ -2633,6 +2633,12 @@ begin
DW_OP_call_frame_cfa = $9c; // 0
DW_OP_bit_piece = $9d; // 2
*)
// dwarf 4
DW_OP_stack_value: begin
EntryP := FStack.Peek;
EntryP^.MType := mlfConstantDeref;
end;
else
begin
debugln(FPDBG_DWARF_ERRORS, ['DWARF ERROR in TDwarfLocationExpression.Evaluate UNKNOWN ', CurInstr^]);