mirror of
https://github.com/cc65/cc65.git
synced 2024-11-19 06:31:31 +00:00
use ReadVar to read the type. This doesn't make a difference for now but will
come handy later. Add output for all of the symbol flags from symdefs.h. git-svn-id: svn://svn.cc65.org/cc65/trunk@4814 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
017bdf970a
commit
674289e471
@ -172,11 +172,23 @@ static const char* GetExportFlags (unsigned Flags, const unsigned char* ConDes)
|
|||||||
unsigned Count;
|
unsigned Count;
|
||||||
unsigned I;
|
unsigned I;
|
||||||
|
|
||||||
/* Type of expression */
|
/* Symbol type */
|
||||||
TypeDesc[0] = '\0';
|
TypeDesc[0] = '\0';
|
||||||
|
switch (Flags & SYM_MASK_TYPE) {
|
||||||
|
case SYM_STD: strcat (TypeDesc, "SYM_STD"); break;
|
||||||
|
case SYM_CHEAP_LOCAL: strcat (TypeDesc, "SYM_CHEAP_LOCAL"); break;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Symbol usage */
|
||||||
|
switch (Flags & SYM_MASK_LABEL) {
|
||||||
|
case SYM_EQUATE: strcat (TypeDesc, ",SYM_EQUATE"); break;
|
||||||
|
case SYM_LABEL: strcat (TypeDesc, ",SYM_LABEL"); break;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Type of expression */
|
||||||
switch (Flags & SYM_MASK_VAL) {
|
switch (Flags & SYM_MASK_VAL) {
|
||||||
case SYM_CONST: strcat (TypeDesc, "SYM_CONST"); break;
|
case SYM_CONST: strcat (TypeDesc, ",SYM_CONST"); break;
|
||||||
case SYM_EXPR: strcat (TypeDesc, "SYM_EXPR"); break;
|
case SYM_EXPR: strcat (TypeDesc, ",SYM_EXPR"); break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Constructor/destructor declarations */
|
/* Constructor/destructor declarations */
|
||||||
@ -543,7 +555,7 @@ void DumpObjExports (FILE* F, unsigned long Offset)
|
|||||||
|
|
||||||
|
|
||||||
/* Read the data for one export */
|
/* Read the data for one export */
|
||||||
unsigned char Type = Read8 (F);
|
unsigned Type = ReadVar (F);
|
||||||
unsigned char AddrSize = Read8 (F);
|
unsigned char AddrSize = Read8 (F);
|
||||||
ReadData (F, ConDes, SYM_GET_CONDES_COUNT (Type));
|
ReadData (F, ConDes, SYM_GET_CONDES_COUNT (Type));
|
||||||
Name = GetString (&StrPool, ReadVar (F));
|
Name = GetString (&StrPool, ReadVar (F));
|
||||||
@ -617,7 +629,7 @@ void DumpObjDbgSyms (FILE* F, unsigned long Offset)
|
|||||||
int HaveValue;
|
int HaveValue;
|
||||||
|
|
||||||
/* Read the data for one symbol */
|
/* Read the data for one symbol */
|
||||||
unsigned char Type = Read8 (F);
|
unsigned Type = ReadVar (F);
|
||||||
unsigned char AddrSize = Read8 (F);
|
unsigned char AddrSize = Read8 (F);
|
||||||
const char* Name = GetString (&StrPool, ReadVar (F));
|
const char* Name = GetString (&StrPool, ReadVar (F));
|
||||||
unsigned Len = strlen (Name);
|
unsigned Len = strlen (Name);
|
||||||
|
Loading…
Reference in New Issue
Block a user