socsvn commit: r271974 - soc2014/astarasikov/head/sys/kern

astarasikov at FreeBSD.org astarasikov at FreeBSD.org
Wed Aug 6 01:34:07 UTC 2014


Author: astarasikov
Date: Wed Aug  6 01:34:05 2014
New Revision: 271974
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=271974

Log:
  [hack] fuzzy subsystem symbol name resolution for debug
  

Modified:
  soc2014/astarasikov/head/sys/kern/init_main.c

Modified: soc2014/astarasikov/head/sys/kern/init_main.c
==============================================================================
--- soc2014/astarasikov/head/sys/kern/init_main.c	Wed Aug  6 01:14:50 2014	(r271973)
+++ soc2014/astarasikov/head/sys/kern/init_main.c	Wed Aug  6 01:34:05 2014	(r271974)
@@ -263,14 +263,24 @@
 			const char *func, *data;
 
 			func = symbol_name((vm_offset_t)(*sipp)->func,
-			    DB_STGY_PROC);
+			    DB_STGY_ANY);
 			data = symbol_name((vm_offset_t)(*sipp)->udata,
 			    DB_STGY_ANY);
+
 			if (func != NULL && data != NULL)
 				printf("   %s(&%s)... ", func, data);
 			else if (func != NULL)
 				printf("   %s(%p)... ", func, (*sipp)->udata);
 			else
+			{
+			    printf("   ");
+				db_printsym((vm_offset_t)(*sipp)->func, DB_STGY_ANY);
+				printf("(&");
+				db_printsym((vm_offset_t)(*sipp)->udata, DB_STGY_ANY);
+				printf(")... ");
+			}
+
+			if (0)
 #endif
 				printf("   %p(%p)... ", (*sipp)->func,
 				    (*sipp)->udata);


More information about the svn-soc-all mailing list