Go to the documentation of this file.
41 #include "tce_config.h"
48 Those flags that dumptpef support are marked with asterisk.
51 [-a|---archive-headers]
52 [-b bfdname| ---target=bfdname]
53 [-C|---demangle[= style] ]
55 [-D|---disassemble-all]
56 [-z|---disassemble-zeroes]
57 [-EB|-EL| ---endian={big | little }]
58 (*)[-f|---file-headers]
59 [---file-start-context]
61 (*)[-h|---section-headers| ---headers] NOTE: -h is replaced with -s
63 (*)[-j section| ---section=section]
68 [-p|---
private-headers]
77 [---start-address= address]
78 [---stop-address= address]
80 [--[no-]show-raw-insn]
81 [---adjust-vma= offset]
97 "file-headers",
"Print file headers.",
"f");
103 "section-headers",
"Print section headers.",
"s");
109 "Print elements of section by section index.",
"j");
114 "reloc",
"Print relocation tables.",
"r");
123 "mem",
"Print information about memory usage of reserved sections.",
"m");
128 "logical",
"Print only logical information. "
129 "Can be used for checking if two files contains same program "
130 "and data and connections even if it's in different order in "
169 std::cout <<
"dumptpef - TPEF Dumper "
179 int main(
int argc,
char* argv[]) {
188 std::cerr <<
"Illegal command line parameters: "
196 std::cerr <<
"Error: Must give input binary file.\n\n";
205 tpef = BinaryReader::readBinary(stream);
222 if (
options.printFileHeaders()) {
226 if (
options.printSectionHeaders()) {
230 if (
options.printMemoryInfo()) {
238 if (
options.printRelocations()) {
242 for (
int i = 1; i <
options.sectionIdCount() + 1; i++) {
virtual void printHelp() const
TTAMachine::Machine * machine
the architecture definition of the estimated processor
bool printSectionHeaders()
virtual int numberOfArguments() const
int main(int argc, char *argv[])
void printVersion() const
void setOnlyLogical(bool flag)
void addOption(CmdLineOptionParser *opt)
virtual int listSize() const
std::string errorMessage() const
void parse(char *argv[], int argc)
static MachInfoCmdLineOptions options
static RegisterPass< MachineDCE > R("machinedce","Symbol string based machine DCE for removing not used emulation functions", false, true)
virtual int integer(int index=0) const
CmdLineOptionParser * findOption(std::string name) const
virtual std::string argument(int index) const
static std::string TCEVersionString()
void section(Word sectionIndex)