mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-29 06:20:30 +02:00
Correct crash on arm in the doc/printf example.
* lib/jit_disasm.c: Correct a crash in the doc/printf example on arm due to releasing the data_info information in jit_clear_state. This is a special case for arm only, and actually, only armv5 or older uses the data_info buffer, or when forcing arm instruction set mode besides thumb available.
This commit is contained in:
parent
a7cde4ba18
commit
16384ff2fe
2 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,12 @@
|
|||
2014-04-04 Paulo Andrade <pcpa@gnu.org>
|
||||
|
||||
* lib/jit_disasm.c: Correct a crash in the doc/printf example
|
||||
on arm due to releasing the data_info information in
|
||||
jit_clear_state. This is a special case for arm only, and
|
||||
actually, only armv5 or older uses the data_info buffer,
|
||||
or when forcing arm instruction set mode besides thumb
|
||||
available.
|
||||
|
||||
2014-12-03 Paulo Andrade <pcpa@gnu.org>
|
||||
|
||||
* doc/body.texi: Write detailed description and examples for
|
||||
|
|
|
@ -294,7 +294,7 @@ _disassemble(jit_state_t *_jit, jit_pointer_t code, jit_int32_t length)
|
|||
char buffer[address_buffer_length];
|
||||
|
||||
#if __arm__
|
||||
data_info = 1;
|
||||
data_info = _jitc && _jitc->data_info.ptr;
|
||||
data_offset = 0;
|
||||
#endif
|
||||
disasm_info.buffer = code;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue