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 | |
parent | d062f5ffbac1250938206f4d2e15c44d8a9357f6 (diff) |
Ensured all labels get an initialized address in buffer views.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/analysis/disass/output.c | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +16-04-22 Cyrille Bagard <nocbos@gmail.com> + + * src/analysis/disass/output.c: + Ensure all labels get an initialized address in buffer views. + 16-04-21 Cyrille Bagard <nocbos@gmail.com> * src/arch/arm/v7/arm.c: 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); |