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