diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2016-04-22 17:57:28 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2016-04-22 17:57:28 (GMT) |
commit | df4bc1a413561f9de095e1c30c678bd7272c3478 (patch) | |
tree | 9ed0286a74dfbea44aaafa48bb651441400f2e52 /src/analysis | |
parent | d062f5ffbac1250938206f4d2e15c44d8a9357f6 (diff) |
Ensured all labels get an initialized address in buffer views.
Diffstat (limited to 'src/analysis')
-rw-r--r-- | src/analysis/disass/output.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/analysis/disass/output.c b/src/analysis/disass/output.c index d8097cf..0ff6148 100644 --- a/src/analysis/disass/output.c +++ b/src/analysis/disass/output.c @@ -235,8 +235,6 @@ void print_disassembled_instructions(GCodeBuffer *buffer, GExeFormat *format, GA g_code_buffer_append_new_line(buffer, line); - init_mrange(&range, get_mrange_addr(g_binary_symbol_get_range(symbols[sym_index])), 0); - 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); @@ -251,6 +249,8 @@ void print_disassembled_instructions(GCodeBuffer *buffer, GExeFormat *format, GA if (label != NULL) { + init_mrange(&range, get_mrange_addr(g_binary_symbol_get_range(symbols[sym_index])), 0); + 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); |