From owner-freebsd-emulation Thu Jan 23 13:45:58 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id NAA13891 for emulation-outgoing; Thu, 23 Jan 1997 13:45:58 -0800 (PST) Received: from ki1.chemie.fu-berlin.de (ki1.Chemie.FU-Berlin.DE [160.45.24.21]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id NAA13886 for ; Thu, 23 Jan 1997 13:45:54 -0800 (PST) Received: by ki1.chemie.fu-berlin.de (Smail3.1.28.1) from mail.hanse.de (193.174.9.9) with smtp id ; Thu, 23 Jan 97 22:45 MET Received: from wavehh.UUCP by mail.hanse.de with UUCP for freebsd-emulation@freebsd.org id ; Thu, 23 Jan 97 22:45 MET Received: by wavehh.hanse.de (4.1/SMI-4.1) id AA00559; Thu, 23 Jan 97 20:51:17 +0100 From: cracauer@wavehh.hanse.de (Martin Cracauer) Message-Id: <9701231951.AA00559@wavehh.hanse.de> Subject: How to use DEBUg with linux_mod.o To: freebsd-emulation@freebsd.org Date: Thu, 23 Jan 1997 20:51:17 +0100 (MET) X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-emulation@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hm, I think I overlook something obvious, but I can't bring the linux module to output the #ifdef DEBUG stuff. I defined -DDEBUG in src/lkm/linux/Makefile, remake linux_mod,o, copied it to /lkm, made a new kernel and rebooted. I still don't see the debug messages. I am able to use ktrace on Linux binaries, but the Linux emulator is silent. I use `strings` to verify that /lkm/linux_mod.o has in fact the #ifdef'ed DEBUG stuff inside. Any hints? Maybe it works only from inside the kernel, not as a lkm? Martin -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Martin Cracauer http://cracauer.cons.org Fax +49 40 522 85 36