From owner-freebsd-scsi Fri Sep 1 1:40:44 2000 Delivered-To: freebsd-scsi@freebsd.org Received: from hotmail.com (f210.pav1.hotmail.com [64.4.31.210]) by hub.freebsd.org (Postfix) with ESMTP id BCB8637B422 for ; Fri, 1 Sep 2000 01:40:42 -0700 (PDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 1 Sep 2000 01:40:42 -0700 Received: from 61.129.184.74 by pv1fd.pav1.hotmail.msn.com with HTTP; Fri, 01 Sep 2000 08:40:42 GMT X-Originating-IP: [61.129.184.74] From: "bsdnewbie bsdnewbie" To: freebsd-scsi@FreeBSD.org Subject: _Debug problem Date: Fri, 01 Sep 2000 16:40:42 CST Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 01 Sep 2000 08:40:42.0586 (UTC) FILETIME=[50408BA0:01C013F0] Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In order to debug my scsi driver, I add one line to my source code: "#define CAMDEBUG" and use the macro CAM_DEBUG to print messages However, when I try to install the module (I write a loadable module), system report : kernel: link_elf: symbol cam_dflags undefined. can't load xxx: Exec format error Therefore, I add another line to include the file which define "cam_dflags" as follows: "#include " Then, nightmare comes: when the program execute to the function: "xpt_bus_register" the system crashed and began to reboot. When I disable the line "#define CAMDEBUG" and enable the line "#include ", it crashed the same way. Why include a .c file will cause my program crash???!!! I think the execution path not changed. _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message