Remove column from DBG_LOC
This commit is contained in:
parent
81da836b66
commit
90666d3f33
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
{erl_opts, [debug_info]}.
|
{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"}
|
, {getopt, "1.0.1"}
|
||||||
, {eblake2, "1.0.0"}
|
, {eblake2, "1.0.0"}
|
||||||
, {jsx, {git, "https://github.com/talentdeficit/jsx.git", {tag, "2.8.0"}}}
|
, {jsx, {git, "https://github.com/talentdeficit/jsx.git", {tag, "2.8.0"}}}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{"1.2.0",
|
{"1.2.0",
|
||||||
[{<<"aebytecode">>,
|
[{<<"aebytecode">>,
|
||||||
{git,"https://github.com/aeternity/aebytecode.git",
|
{git,"https://github.com/aeternity/aebytecode.git",
|
||||||
{ref,"dc7a7c7d6f2ccac74572e3fe6f917b348849a83f"}},
|
{ref,"69a1c41a4fc31c6449bf077532c22de23f2bbe83"}},
|
||||||
0},
|
0},
|
||||||
{<<"aeserialization">>,
|
{<<"aeserialization">>,
|
||||||
{git,"https://github.com/aeternity/aeserialization.git",
|
{git,"https://github.com/aeternity/aeserialization.git",
|
||||||
|
@ -767,11 +767,9 @@ dbg_loc(Env, Ann) ->
|
|||||||
F -> F
|
F -> F
|
||||||
end,
|
end,
|
||||||
Line = proplists:get_value(line, Ann),
|
Line = proplists:get_value(line, Ann),
|
||||||
Col = proplists:get_value(col, Ann),
|
case Line of
|
||||||
case {Line, Col} of
|
undefined -> [];
|
||||||
{undefined, _} -> [];
|
_ -> [{'DBG_LOC', {immediate, File}, {immediate, Line}}]
|
||||||
{_, undefined} -> [];
|
|
||||||
{_, _} -> [{'DBG_LOC', {immediate, File}, {immediate, Line}, {immediate, Col}}]
|
|
||||||
end
|
end
|
||||||
end.
|
end.
|
||||||
|
|
||||||
@ -955,7 +953,7 @@ attributes(I) ->
|
|||||||
loop -> Impure(pc, []);
|
loop -> Impure(pc, []);
|
||||||
switch_body -> Pure(none, []);
|
switch_body -> Pure(none, []);
|
||||||
'RETURN' -> Impure(pc, []);
|
'RETURN' -> Impure(pc, []);
|
||||||
{'DBG_LOC', _, _, _} -> Pure(none, []);
|
{'DBG_LOC', _, _} -> Pure(none, []);
|
||||||
{'DBG_DEF', _, _} -> Pure(none, []);
|
{'DBG_DEF', _, _} -> Pure(none, []);
|
||||||
{'DBG_UNDEF', _, _} -> Pure(none, []);
|
{'DBG_UNDEF', _, _} -> Pure(none, []);
|
||||||
{'RETURNR', A} -> Impure(pc, A);
|
{'RETURNR', A} -> Impure(pc, A);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user