Guard call to gencore and freecore
The gencore() and freecore() code in gencore.c is guarded by POSTK_DEBUG_ARCH_DEP_18, so the call to these functions should also be guarded, otherwise linking fails.
This commit is contained in:
@@ -944,6 +944,7 @@ void coredump(struct thread *thread, void *regs)
|
|||||||
}
|
}
|
||||||
#endif /* POSTK_DEBUG_ARCH_DEP_67 */
|
#endif /* POSTK_DEBUG_ARCH_DEP_67 */
|
||||||
|
|
||||||
|
#ifndef POSTK_DEBUG_ARCH_DEP_18
|
||||||
ret = gencore(thread, regs, &coretable, &chunks);
|
ret = gencore(thread, regs, &coretable, &chunks);
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
dkprintf("could not generate a core file image\n");
|
dkprintf("could not generate a core file image\n");
|
||||||
@@ -960,6 +961,7 @@ void coredump(struct thread *thread, void *regs)
|
|||||||
kprintf("core dump failed.\n");
|
kprintf("core dump failed.\n");
|
||||||
}
|
}
|
||||||
freecore(&coretable);
|
freecore(&coretable);
|
||||||
|
#endif /* POSTK_DEBUG_ARCH_DEP_18 */
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef POSTK_DEBUG_ARCH_DEP_8
|
#ifndef POSTK_DEBUG_ARCH_DEP_8
|
||||||
|
|||||||
Reference in New Issue
Block a user