diff src/codeview/codeview.d @ 5:496dfd8f7342 default tip

added: -repeat option for "in", "ov" -run until a line option -run until a function option -break on a function start -n is an alias for ov
author marton@basel.hu
date Sun, 17 Apr 2011 11:05:31 +0200
parents a5fb1bc967e6
children
line wrap: on
line diff
--- a/src/codeview/codeview.d	Sun Apr 10 12:15:04 2011 +0200
+++ b/src/codeview/codeview.d	Sun Apr 17 11:05:31 2011 +0200
@@ -212,6 +212,20 @@
 		return null;
 	}
 
+        /**********************************************************************************************
+        Find matching data symbols by a substring in its name.
+    **********************************************************************************************/
+	DataSymbol[] findDataSymbolBySubstring(string name)
+	{
+                DataSymbol[] found;
+		foreach ( ds; data_symbols )
+		{
+			if ( find(ds.name_notype,name)>=0 )
+				found~=ds;
+		}
+		return found;
+	}
+
 	/**********************************************************************************************
         Find nearest data symbol to the given address.
     **********************************************************************************************/