From owner-kdb@oss.sgi.com Fri Aug 27 02:53:05 1999 Received: (from majordomo@localhost) by oss.sgi.com (8.9.3/8.9.3) id CAA10377 for kdb-outgoing; Fri, 27 Aug 1999 02:53:05 -0700 X-Authentication-Warning: oss.sgi.com: majordomo set sender to owner-kdb@oss.sgi.com using -f Received: from soto.zerosoft.co.jp (soto.zerosoft.co.jp [210.140.67.114]) by oss.sgi.com (8.9.3/8.9.3) with ESMTP id CAA10374 for ; Fri, 27 Aug 1999 02:52:59 -0700 Received: (from bin@localhost) by soto.zerosoft.co.jp (8.8.5/3.5Wpl5) id SAA15085 for ; Fri, 27 Aug 1999 18:51:40 +0900 (JST) Received: from uchi.zerosoft.co.jp(192.168.181.182) by soto.zerosoft.co.jp via smap (V2.0) id xma015083; Fri, 27 Aug 99 18:51:31 +0900 Received: from ade_dell ([192.168.240.100]) by uchi.zerosoft.co.jp (8.8.5/3.5Wpl5) with SMTP id SAA06422; Fri, 27 Aug 1999 18:51:30 +0900 (JST) Date: Fri, 27 Aug 1999 18:51:05 +0900 From: Masahiro Adegawa To: kdb@oss.sgi.com Subject: [PATCH]Handle symbols from modules with CONFIG_MODVERSIONS Message-Id: <37C65F892A8.6822ADEGAWA@mail.zerosoft.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver 1.25.04 Sender: owner-kdb@oss.sgi.com Precedence: bulk hi, --- linux-2.2.11-t/arch/i386/kdb/kdbsupport.c Tue Aug 10 14:51:53 1999 +++ linux-2.2.12/arch/i386/kdb/kdbsupport.c Fri Aug 27 17:50:09 1999 @@ -449,6 +449,19 @@ if (ksp->name && (strcmp(ksp->name, symname)==0)) { return ksp; } +#ifdef CONFIG_MODVERSIONS + if (ksp->name && (strstr(ksp->name, symname)==ksp->name)) { +#ifdef CONFIG_SMP + if (strstr(ksp->name+strlen(symname),"_Rsmp_")==(ksp->name+strlen(symname)) && + strlen(ksp->name)==(strlen(symname)+14)) { +#else + if (strstr(ksp->name+strlen(symname),"_R")==(ksp->name+strlen(symname)) && + strlen(ksp->name)==(strlen(symname)+10)) { +#endif + return ksp; + } + } +#endif } return NULL; -Adegawa Masahiro From owner-kdb@oss.sgi.com Mon Aug 30 23:13:03 1999 Received: (from majordomo@localhost) by oss.sgi.com (8.9.3/8.9.3) id XAA16792 for kdb-outgoing; Mon, 30 Aug 1999 23:13:03 -0700 X-Authentication-Warning: oss.sgi.com: majordomo set sender to owner-kdb@oss.sgi.com using -f Received: from soto.zerosoft.co.jp (soto.zerosoft.co.jp [210.140.67.114]) by oss.sgi.com (8.9.3/8.9.3) with ESMTP id XAA16789 for ; Mon, 30 Aug 1999 23:13:01 -0700 Received: (from bin@localhost) by soto.zerosoft.co.jp (8.8.5/3.5Wpl5) id PAA08088; Tue, 31 Aug 1999 15:12:16 +0900 (JST) Received: from uchi.zerosoft.co.jp(192.168.181.182) by soto.zerosoft.co.jp via smap (V2.0) id xma008084; Tue, 31 Aug 99 15:11:58 +0900 Received: from ade_dell ([192.168.240.100]) by uchi.zerosoft.co.jp (8.8.5/3.5Wpl5) with SMTP id PAA21747; Tue, 31 Aug 1999 15:11:58 +0900 (JST) Date: Tue, 31 Aug 1999 15:11:30 +0900 From: Masahiro Adegawa To: kdb@oss.sgi.com Cc: slurn@engr.sgi.com Subject: [PATCH]Handle symbols from modules with CONFIG_MODVERSIONS Message-Id: <37CB72121.7CF3ADEGAWA@mail.zerosoft.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver 1.25.04 Sender: owner-kdb@oss.sgi.com Precedence: bulk hi, --- linux-2.2.11-t/arch/i386/kdb/kdbsupport.c Tue Aug 10 14:51:53 1999 +++ linux-2.2.12/arch/i386/kdb/kdbsupport.c Fri Aug 27 17:50:09 1999 @@ -449,6 +449,19 @@ if (ksp->name && (strcmp(ksp->name, symname)==0)) { return ksp; } +#ifdef CONFIG_MODVERSIONS + if (ksp->name && (strstr(ksp->name, symname)==ksp->name)) { +#ifdef CONFIG_SMP + if (strstr(ksp->name+strlen(symname),"_Rsmp_")==(ksp->name+strlen(symname)) && + strlen(ksp->name)==(strlen(symname)+14)) { +#else + if (strstr(ksp->name+strlen(symname),"_R")==(ksp->name+strlen(symname)) && + strlen(ksp->name)==(strlen(symname)+10)) { +#endif + return ksp; + } + } +#endif } return NULL; -Adegawa Masahiro