blob: 2837f0bf3e280f7eafceb58eb1841cf971fb5c02 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
#include "standardpch.h"
#include "verbdumptoc.h"
#include "methodcontext.h"
#include "tocfile.h"
#include "runtimedetails.h"
int verbDumpToc::DoWork(const char *nameOfInput)
{
TOCFile tf;
tf.LoadToc(nameOfInput, false);
for (size_t i = 0; i < tf.GetTocCount(); i++)
{
const TOCElement* te = tf.GetElementPtr(i);
printf("%4u: %016llX ", te->Number, te->Offset);
for (int j = 0; j < sizeof(te->Hash); j++)
{
printf("%02x ", te->Hash[j]);
}
printf("\n");
}
return 0;
}
|