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);
 }
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to