summaryrefslogtreecommitdiff
path: root/plugins/readdex/code.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2016-03-15 00:01:58 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2016-03-15 00:01:58 (GMT)
commitb94be85e00d7770af4de93bbba91b421cfb6faea (patch)
treeea16d5248b293b3a458ad16625c6919315a4aa4a /plugins/readdex/code.c
parentfab9d7cd46922abea7d94f36dcd4630cdf3f4719 (diff)
Marked lines which are able to start a group of lines as width managers.
Diffstat (limited to 'plugins/readdex/code.c')
-rw-r--r--plugins/readdex/code.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/readdex/code.c b/plugins/readdex/code.c
index 971117e..24813ea 100644
--- a/plugins/readdex/code.c
+++ b/plugins/readdex/code.c
@@ -99,6 +99,8 @@ bool annotate_dex_code_item(const GDexFormat *format, uleb128_t offset)
free(text);
+ g_binary_symbol_define_as_block_start(symbol, true);
+
/* ins_size */
copy_vmpa(&start, &pos);
@@ -253,6 +255,8 @@ static bool annotate_dex_try_item(const GDexFormat *format, vmpa2t *pos, const v
free(text);
+ g_binary_symbol_define_as_block_start(symbol, true);
+
/* insn_count */
copy_vmpa(&start, pos);
@@ -336,6 +340,8 @@ static bool annotate_dex_encoded_catch_handler_list(const GDexFormat *format, vm
free(text);
+ g_binary_symbol_define_as_block_start(symbol, true);
+
/* instance_fields_size */
g_imm_operand_as_uleb128(G_IMM_OPERAND(operand), &size);
@@ -396,6 +402,8 @@ static bool annotate_dex_encoded_catch_handler(const GDexFormat *format, vmpa2t
free(text);
+ g_binary_symbol_define_as_block_start(symbol, true);
+
g_imm_operand_as_leb128(G_IMM_OPERAND(operand), &size);
has_catch_all = (size <= 0);