diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2016-01-21 20:51:27 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2016-01-21 21:23:58 (GMT) |
commit | dd33acbff36c0a3ae4618ac5021e74448cad5ce5 (patch) | |
tree | 834351b836760fc54533e2f39c4b8202e695c0e3 /src/analysis/disass/output.c | |
parent | e3ee1abf12d7868f5eaf759e04a4b4911fcdfa91 (diff) |
Defined some raw primitives to write or delete comments.
Diffstat (limited to 'src/analysis/disass/output.c')
-rw-r--r-- | src/analysis/disass/output.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/analysis/disass/output.c b/src/analysis/disass/output.c index 67a3ce8..75444a5 100644 --- a/src/analysis/disass/output.c +++ b/src/analysis/disass/output.c @@ -210,13 +210,15 @@ void print_disassembled_instructions(GCodeBuffer *buffer, const GExeFormat *form { init_mrange(&range, get_mrange_addr(g_binary_symbol_get_range(symbols[sym_index])), 0); - line = g_code_buffer_append_new_line(buffer, &range); + line = g_code_buffer_prepare_new_line(buffer, &range); + g_buffer_line_add_flag(line, BLF_IS_LABEL); g_buffer_line_fill_mrange(line, msize, msize); g_buffer_line_start_merge_at(line, BLC_ASSEMBLY_HEAD); g_buffer_line_insert_text(line, BLC_ASSEMBLY_HEAD, label, strlen(label), RTT_LABEL); g_buffer_line_insert_text(line, BLC_ASSEMBLY_HEAD, ":", 1, RTT_PUNCT); + g_code_buffer_append_new_line(buffer, line); } @@ -288,6 +290,8 @@ void print_disassembled_instructions(GCodeBuffer *buffer, const GExeFormat *form } + g_code_buffer_append_new_line(buffer, line); + //gtk_extended_status_bar_update_activity(statusbar, id, (iaddr - start) * 1.0 / (end - start)); |