Added dump of debug symbols and output of values for the exports, in those
cases where the export is a constant. git-svn-id: svn://svn.cc65.org/cc65/trunk@246 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -77,7 +77,8 @@ static void Usage (void)
|
||||
" -V\t\t\tPrint the version number and exit\n"
|
||||
"\n"
|
||||
"Long options:\n"
|
||||
" --dump-all\t\tDump all object file information\n"
|
||||
" --dump-all\t\tDump all object file information\n"
|
||||
" --dump-dbgsyms\tDump debug symbols\n"
|
||||
" --dump-exports\tDump exported symbols\n"
|
||||
" --dump-files\t\tDump the source files\n"
|
||||
" --dump-header\t\tDump the object file header\n"
|
||||
@@ -99,6 +100,14 @@ static void OptDumpAll (const char* Opt, const char* Arg)
|
||||
|
||||
|
||||
|
||||
static void OptDumpDbgSyms (const char* Opt, const char* Arg)
|
||||
/* Dump debug symbols contained in the object file */
|
||||
{
|
||||
What |= D_DBGSYMS;
|
||||
}
|
||||
|
||||
|
||||
|
||||
static void OptDumpExports (const char* Opt, const char* Arg)
|
||||
/* Dump the exported symbols */
|
||||
{
|
||||
@@ -215,6 +224,9 @@ static void DumpFile (const char* Name)
|
||||
if (What & D_EXPORTS) {
|
||||
DumpObjExports (F, 0);
|
||||
}
|
||||
if (What & D_DBGSYMS) {
|
||||
DumpObjDbgSyms (F, 0);
|
||||
}
|
||||
}
|
||||
|
||||
/* Close the file */
|
||||
@@ -228,9 +240,10 @@ int main (int argc, char* argv [])
|
||||
{
|
||||
/* Program long options */
|
||||
static const LongOpt OptTab[] = {
|
||||
{ "--dump-all", 0, OptDumpAll },
|
||||
{ "--dump-all", 0, OptDumpAll },
|
||||
{ "--dump-dbgsyms", 0, OptDumpDbgSyms },
|
||||
{ "--dump-exports", 0, OptDumpExports },
|
||||
{ "--dump-files", 0, OptDumpFiles },
|
||||
{ "--dump-files", 0, OptDumpFiles },
|
||||
{ "--dump-header", 0, OptDumpHeader },
|
||||
{ "--dump-imports", 0, OptDumpImports },
|
||||
{ "--dump-options", 0, OptDumpOptions },
|
||||
|
||||
Reference in New Issue
Block a user