From 90666d3f33c2e4a54feaf95e433ef7da3b6cef20 Mon Sep 17 00:00:00 2001 From: Gaith Hallak Date: Sun, 25 Dec 2022 11:11:55 +0300 Subject: [PATCH] Remove column from DBG_LOC --- rebar.config | 2 +- rebar.lock | 2 +- src/aeso_fcode_to_fate.erl | 10 ++++------ 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/rebar.config b/rebar.config index 3403558..ac54995 100644 --- a/rebar.config +++ b/rebar.config @@ -2,7 +2,7 @@ {erl_opts, [debug_info]}. -{deps, [ {aebytecode, {git, "https://github.com/aeternity/aebytecode.git", {ref, "dc7a7c7"}}} +{deps, [ {aebytecode, {git, "https://github.com/aeternity/aebytecode.git", {ref, "69a1c41"}}} , {getopt, "1.0.1"} , {eblake2, "1.0.0"} , {jsx, {git, "https://github.com/talentdeficit/jsx.git", {tag, "2.8.0"}}} diff --git a/rebar.lock b/rebar.lock index 1c5604f..3c897a7 100644 --- a/rebar.lock +++ b/rebar.lock @@ -1,7 +1,7 @@ {"1.2.0", [{<<"aebytecode">>, {git,"https://github.com/aeternity/aebytecode.git", - {ref,"dc7a7c7d6f2ccac74572e3fe6f917b348849a83f"}}, + {ref,"69a1c41a4fc31c6449bf077532c22de23f2bbe83"}}, 0}, {<<"aeserialization">>, {git,"https://github.com/aeternity/aeserialization.git", diff --git a/src/aeso_fcode_to_fate.erl b/src/aeso_fcode_to_fate.erl index 3cab933..e1872e4 100644 --- a/src/aeso_fcode_to_fate.erl +++ b/src/aeso_fcode_to_fate.erl @@ -767,11 +767,9 @@ dbg_loc(Env, Ann) -> F -> F end, Line = proplists:get_value(line, Ann), - Col = proplists:get_value(col, Ann), - case {Line, Col} of - {undefined, _} -> []; - {_, undefined} -> []; - {_, _} -> [{'DBG_LOC', {immediate, File}, {immediate, Line}, {immediate, Col}}] + case Line of + undefined -> []; + _ -> [{'DBG_LOC', {immediate, File}, {immediate, Line}}] end end. @@ -955,7 +953,7 @@ attributes(I) -> loop -> Impure(pc, []); switch_body -> Pure(none, []); 'RETURN' -> Impure(pc, []); - {'DBG_LOC', _, _, _} -> Pure(none, []); + {'DBG_LOC', _, _} -> Pure(none, []); {'DBG_DEF', _, _} -> Pure(none, []); {'DBG_UNDEF', _, _} -> Pure(none, []); {'RETURNR', A} -> Impure(pc, A);