Click here to Skip to main content
Click here to Skip to main content
Articles » Languages » C# » Applications » Downloads
 
Add your own
alternative version

Building .NET Coverage Tool

, 25 Aug 2009 MIT
This article is a walkthrough for building a .NET coverage tool
Coverage.NET_demo.zip
TestApp
TestApp.exe
TestApp.pdb
Tool
Coverage.Counter.dll
Coverage.exe
Mono.Cecil.dll
Mono.Tools.Pdb2Mdb.dll
Coverage.NET_src.zip
Coverage
Common
Instrument
Properties
Report
Coverage.Counter
Properties
Mono.Cecil
src
AUTHORS
ChangeLog
CodeGen
cecil-gen-attributes.rb
cecil-gen-sources.rb
cecil-gen-tests.rb
cecil-gen-types.rb
cecil-gen.rb
cecil-mig.rb
cecil-update-rev
templates
configure
default.build
Makefile
mono-cecil.pc.in
Mono.Cecil
Mono.Cecil.Binary
Mono.Cecil.Cil
Mono.Cecil.dll.sources
Mono.Cecil.Metadata
Mono.Cecil.Signatures
Mono.Xml
ChangeLog
NEWS
README
standalone.make
TODO
Mono.Tools.Pdb2Mdb
Properties
src
ChangeLog
LICENSE
Makefile
pdb2mdb.exe.sources
//-----------------------------------------------------------------------------
//
// Copyright (C) Microsoft Corporation.  All Rights Reserved.
//
//-----------------------------------------------------------------------------
using System;

namespace Microsoft.Cci.Pdb {
  internal struct DbiHeader {
    internal DbiHeader(BitAccess bits) {
      bits.ReadInt32(out sig);
      bits.ReadInt32(out ver);
      bits.ReadInt32(out age);
      bits.ReadInt16(out gssymStream);
      bits.ReadUInt16(out vers);
      bits.ReadInt16(out pssymStream);
      bits.ReadUInt16(out pdbver);
      bits.ReadInt16(out symrecStream);
      bits.ReadUInt16(out pdbver2);
      bits.ReadInt32(out gpmodiSize);
      bits.ReadInt32(out secconSize);
      bits.ReadInt32(out secmapSize);
      bits.ReadInt32(out filinfSize);
      bits.ReadInt32(out tsmapSize);
      bits.ReadInt32(out mfcIndex);
      bits.ReadInt32(out dbghdrSize);
      bits.ReadInt32(out ecinfoSize);
      bits.ReadUInt16(out flags);
      bits.ReadUInt16(out machine);
      bits.ReadInt32(out reserved);
    }

    internal int sig;                        // 0..3
    internal int ver;                        // 4..7
    internal int age;                        // 8..11
    internal short gssymStream;                // 12..13
    internal ushort vers;                       // 14..15
    internal short pssymStream;                // 16..17
    internal ushort pdbver;                     // 18..19
    internal short symrecStream;               // 20..21
    internal ushort pdbver2;                    // 22..23
    internal int gpmodiSize;                 // 24..27
    internal int secconSize;                 // 28..31
    internal int secmapSize;                 // 32..35
    internal int filinfSize;                 // 36..39
    internal int tsmapSize;                  // 40..43
    internal int mfcIndex;                   // 44..47
    internal int dbghdrSize;                 // 48..51
    internal int ecinfoSize;                 // 52..55
    internal ushort flags;                      // 56..57
    internal ushort machine;                    // 58..59
    internal int reserved;                   // 60..63
  }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The MIT License

Share

About the Author

Sergiy Sakharov
Software Developer (Senior)
United Kingdom United Kingdom
No Biography provided

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.1411023.1 | Last Updated 25 Aug 2009
Article Copyright 2009 by Sergiy Sakharov
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid