using System;
using IL2CPU.Debug.Symbols;
namespace ElfMap2DebugDb
{
///
/// Application which is populate debug database with symbols from the ELF map file.
///
internal class Program
{
///
/// Entry point for the application.
///
/// Parameters passed from the command line.
private static void Main(string[] args)
{
if (args.Length != 2)
{
PrintHelp();
return;
}
var xMapFile = args[0];
var xDebugDatabase = args[1];
ObjDump.ExtractMapSymbolsForElfFile(xDebugDatabase, xMapFile);
}
///
/// Prints help page for the application.
///
private static void PrintHelp()
{
Console.WriteLine("Usage: ElfMap2DebugDb.exe ");
}
}
}