From 7576599c91a7be973369349d25969f4a3d1c623c Mon Sep 17 00:00:00 2001 From: Bernhard Schommer Date: Thu, 1 Dec 2016 10:49:21 +0100 Subject: Compute the correct size of location expressions. The arm dwarf float registers constants are larger than 2 bytes. Bug 20489 --- debug/DwarfUtil.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'debug') diff --git a/debug/DwarfUtil.ml b/debug/DwarfUtil.ml index 8db80fca..33bf95f6 100644 --- a/debug/DwarfUtil.ml +++ b/debug/DwarfUtil.ml @@ -156,4 +156,4 @@ let size_of_loc_expr = function | DW_OP_bregx (a,b) -> 1 + (sizeof_uleb128 a) + (sizeof_sleb128 (Int32.to_int b)) | DW_OP_plus_uconst a | DW_OP_piece a -> 1 + (sizeof_uleb128 a) - | DW_OP_reg i -> if i < 32 then 1 else 2 + | DW_OP_reg i -> if i < 32 then 1 else 1 + (sizeof_uleb128 i) -- cgit