2005-03-29 Zoltan Varga <vargaz@freemail.hu>

* symbols.cs: Update to latest Mono.CompilerServices.SymbolWriter.

	* Makefile: Disable building of nunit-console.exe for now.

svn path=/trunk/monocov/; revision=42324
This commit is contained in:
Zoltan Varga 2005-03-29 09:10:19 +00:00
Родитель 9b65af695d
Коммит b3856a491b
3 изменённых файлов: 13 добавлений и 5 удалений

Просмотреть файл

@ -1,3 +1,9 @@
2005-03-29 Zoltan Varga <vargaz@freemail.hu>
* symbols.cs: Update to latest Mono.CompilerServices.SymbolWriter.
* Makefile: Disable building of nunit-console.exe for now.
2004-12-06 Zoltan Varga <vargaz@freemail.hu>
* coverage.c *.cs Makefile: Applied patch from Mike Tindal (mtindal@paradoxpoint.com). Fix compilation problems on HEAD.

Просмотреть файл

@ -3,7 +3,7 @@ PROJECTNAME = monocov
GUI = gtk
MONO_ROOT = ../mono
all: monocov.exe libmono-profiler-monocov.so symbols.exe nunit-console.exe
all: monocov.exe libmono-profiler-monocov.so symbols.exe
ifeq ($(GUI), gtk)
GUI_SRCS = \
@ -47,7 +47,7 @@ symbols.exe: symbols.cs
mcs -g /target:exe /out:$@ -r Mono.CompilerServices.SymbolWriter symbols.cs
nunit-console.exe: nunit-console.cs
mcs -r nunit.framework -r Mono.GetOptions nunit-console.cs
mcs -r nunit.framework -r nunit.core -r nunit.util -r Mono.GetOptions nunit-console.cs
libmono-profiler-monocov.so: coverage.c
$(CC) -g -I$(MONO_ROOT) `pkg-config --cflags glib-2.0` --shared -o $@ $^

Просмотреть файл

@ -16,7 +16,7 @@ public class SymbolDumper {
string assemblyName = args [0];
string methodNamePattern = args [1];
Assembly assembly = Assembly.LoadFrom (args [0]);
Assembly assembly = Assembly.LoadFrom (assemblyName);
Console.WriteLine ("Reading symbols for " + assembly + " ...");
MonoSymbolFile symbolFile = MonoSymbolFile.ReadSymbolFile (assembly);
@ -31,8 +31,10 @@ public class SymbolDumper {
LineNumberEntry[] lines = entry.LineNumbers;
if (entry.Name.IndexOf (methodNamePattern) != -1) {
Console.WriteLine ("METHOD: " + entry.Name + "[" + entry.Token + "]");
MethodBase mi = MonoDebuggerSupport.GetMethod (assembly, entry.Token);
if (mi.Name.IndexOf (methodNamePattern) != -1) {
Console.WriteLine (mi.DeclaringType.FullName + ":" + mi.Name + " " + entry);
foreach (LineNumberEntry line in lines)
Console.WriteLine ("\t" + line);