svn commit: r356472 - head/sys/arm/arm

Ian Lepore ian at FreeBSD.org
Tue Jan 7 21:13:35 UTC 2020


Author: ian
Date: Tue Jan  7 21:13:34 2020
New Revision: 356472
URL: https://svnweb.freebsd.org/changeset/base/356472

Log:
  Add #ifdef option-test wrappers around another call to an arm/unwind.c
  function which is only compiled-in with certain options.
  
  Why is it always the most trivial part of a big commit that takes 3 tries
  to get right?

Modified:
  head/sys/arm/arm/elf_machdep.c

Modified: head/sys/arm/arm/elf_machdep.c
==============================================================================
--- head/sys/arm/arm/elf_machdep.c	Tue Jan  7 20:35:43 2020	(r356471)
+++ head/sys/arm/arm/elf_machdep.c	Tue Jan  7 21:13:34 2020	(r356472)
@@ -337,7 +337,9 @@ int
 elf_cpu_unload_file(linker_file_t lf)
 {
 
+#if defined(DDB) || defined(KDTRACE_HOOKS) || defined(STACK)
 	/* Inform the stack(9) code that this module is gone. */
 	unwind_module_unloaded(lf);
+#endif
 	return (0);
 }


More information about the svn-src-head mailing list