[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 309/437: Do not fail if NULL is passed to init_jit.
From: |
Andy Wingo |
Subject: |
[Guile-commits] 309/437: Do not fail if NULL is passed to init_jit. |
Date: |
Mon, 2 Jul 2018 05:14:42 -0400 (EDT) |
wingo pushed a commit to branch lightning
in repository guile.
commit 1d75fe625af6020f88b7977810ed7a66c47d7bf3
Author: pcpa <address@hidden>
Date: Tue Oct 14 17:03:51 2014 -0300
Do not fail if NULL is passed to init_jit.
This should just tell to disable the disassembler.
---
lib/jit_disasm.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/lib/jit_disasm.c b/lib/jit_disasm.c
index 361200e..c80c9e2 100644
--- a/lib/jit_disasm.c
+++ b/lib/jit_disasm.c
@@ -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,7 +199,8 @@ void
_jit_disassemble(jit_state_t *_jit)
{
#if DISASSEMBLER
- disassemble(_jit->code.ptr, _jit->pc.uc - _jit->code.ptr);
+ if (disasm_bfd)
+ disassemble(_jit->code.ptr, _jit->pc.uc - _jit->code.ptr);
#endif
}
- [Guile-commits] 292/437: AARCH64: Correct assertion test, (continued)
- [Guile-commits] 292/437: AARCH64: Correct assertion test, Andy Wingo, 2018/07/02
- [Guile-commits] 305/437: Consider all callee_save_p regs as live on non trackable jumps, Andy Wingo, 2018/07/02
- [Guile-commits] 40/437: checkin rewrite of i386 assembler, Andy Wingo, 2018/07/02
- [Guile-commits] 295/437: Always mark return registers as live in epilog, Andy Wingo, 2018/07/02
- [Guile-commits] 326/437: Actually install the pkgconfig file., Andy Wingo, 2018/07/02
- [Guile-commits] 325/437: misc: Create a pkg-config file, Andy Wingo, 2018/07/02
- [Guile-commits] 335/437: PPC: Add initial powerpc le support., Andy Wingo, 2018/07/02
- [Guile-commits] 272/437: x86: Correct wrong x87 float indexed store code generation., Andy Wingo, 2018/07/02
- [Guile-commits] 340/437: ARM: Flush cache page by page, Andy Wingo, 2018/07/02
- [Guile-commits] 339/437: ARM: Correct constants offset check, Andy Wingo, 2018/07/02
- [Guile-commits] 309/437: Do not fail if NULL is passed to init_jit.,
Andy Wingo <=
- [Guile-commits] 225/437: Second alpha release 1.99a, Andy Wingo, 2018/07/02
- [Guile-commits] 243/437: IA64: Correct code to save/restore r2 used as lightning JIT_FP., Andy Wingo, 2018/07/02
- [Guile-commits] 348/437: S390: Replace s390x filenames with s390, Andy Wingo, 2018/07/02
- [Guile-commits] 376/437: Correct update of on stack vararg double argument pointer, Andy Wingo, 2018/07/02
- [Guile-commits] 378/437: arm: Add initial jit_va_ calls to arm, Andy Wingo, 2018/07/02
- [Guile-commits] 387/437: alpha: Add initial jit_va_ calls to alpha, Andy Wingo, 2018/07/02
- [Guile-commits] 263/437: ARM: Correct wrong offset for load/store of floats., Andy Wingo, 2018/07/02
- [Guile-commits] 317/437: Add the new "range" test., Andy Wingo, 2018/07/02
- [Guile-commits] 174/437: Correct off by one label/note name and add align argument to jit_data, Andy Wingo, 2018/07/02
- [Guile-commits] 279/437: Implement and document the new jit_indirect call., Andy Wingo, 2018/07/02