mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-05 06:50:21 +02:00
Do not fail if NULL is passed to init_jit.
This should just tell to disable the disassembler.
This commit is contained in:
parent
52448473be
commit
1d75fe625a
1 changed files with 4 additions and 1 deletions
|
@ -59,6 +59,8 @@ static jit_state_t *disasm_jit;
|
|||
void
|
||||
jit_init_debug(char *progname)
|
||||
{
|
||||
if (progname == NULL)
|
||||
return;
|
||||
#if DISASSEMBLER
|
||||
bfd_init();
|
||||
|
||||
|
@ -197,6 +199,7 @@ void
|
|||
_jit_disassemble(jit_state_t *_jit)
|
||||
{
|
||||
#if DISASSEMBLER
|
||||
if (disasm_bfd)
|
||||
disassemble(_jit->code.ptr, _jit->pc.uc - _jit->code.ptr);
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue