osprey/kgccfe/gnu/mips-tdump.c File Reference

#include "config.h"
#include "system.h"
#include <a.out.h>
#include "stab.def"

Include dependency graph for mips-tdump.c:

Go to the source code of this file.

Data Types

type  scope

Defines

#define CODE_MASK   0x8F300
#define MIPS_IS_STAB(sym)   (((sym)->index & 0xFFF00) == CODE_MASK)
#define MIPS_MARK_STAB(code)   ((code)+CODE_MASK)
#define MIPS_UNMARK_STAB(code)   ((code)-CODE_MASK)
#define uchar   unsigned char
#define ushort   unsigned short
#define uint   unsigned int
#define ulong   unsigned long
#define stStaParam   16
#define btVoid   26
#define __define_stab(NAME, CODE, STRING)   {(int)CODE, STRING},

Typedefs

typedef enum sc sc_t
typedef enum st st_t
typedef enum tq tq_t
typedef enum bt bt_t
typedef enum lang lang_t
typedef enum glevel glevel_t
typedef struct scope scope_t

Enumerations

enum  sc {
  sc_Nil = scNil, sc_Text = scText, sc_Data = scData, sc_Bss = scBss,
  sc_Register = scRegister, sc_Abs = scAbs, sc_Undefined = scUndefined, sc_CdbLocal = scCdbLocal,
  sc_Bits = scBits, sc_CdbSystem = scCdbSystem, sc_RegImage = scRegImage, sc_Info = scInfo,
  sc_UserStruct = scUserStruct, sc_SData = scSData, sc_SBss = scSBss, sc_RData = scRData,
  sc_Var = scVar, sc_Common = scCommon, sc_SCommon = scSCommon, sc_VarRegister = scVarRegister,
  sc_Variant = scVariant, sc_SUndefined = scSUndefined, sc_Init = scInit, sc_Max = scMax,
  sc_Nil = scNil, sc_Text = scText, sc_Data = scData, sc_Bss = scBss,
  sc_Register = scRegister, sc_Abs = scAbs, sc_Undefined = scUndefined, sc_CdbLocal = scCdbLocal,
  sc_Bits = scBits, sc_CdbSystem = scCdbSystem, sc_RegImage = scRegImage, sc_Info = scInfo,
  sc_UserStruct = scUserStruct, sc_SData = scSData, sc_SBss = scSBss, sc_RData = scRData,
  sc_Var = scVar, sc_Common = scCommon, sc_SCommon = scSCommon, sc_VarRegister = scVarRegister,
  sc_Variant = scVariant, sc_SUndefined = scSUndefined, sc_Init = scInit, sc_Max = scMax,
  sc_Nil = scNil, sc_Text = scText, sc_Data = scData, sc_Bss = scBss,
  sc_Register = scRegister, sc_Abs = scAbs, sc_Undefined = scUndefined, sc_CdbLocal = scCdbLocal,
  sc_Bits = scBits, sc_CdbSystem = scCdbSystem, sc_RegImage = scRegImage, sc_Info = scInfo,
  sc_UserStruct = scUserStruct, sc_SData = scSData, sc_SBss = scSBss, sc_RData = scRData,
  sc_Var = scVar, sc_Common = scCommon, sc_SCommon = scSCommon, sc_VarRegister = scVarRegister,
  sc_Variant = scVariant, sc_SUndefined = scSUndefined, sc_Init = scInit, sc_Max = scMax,
  sc_Nil = scNil, sc_Text = scText, sc_Data = scData, sc_Bss = scBss,
  sc_Register = scRegister, sc_Abs = scAbs, sc_Undefined = scUndefined, sc_CdbLocal = scCdbLocal,
  sc_Bits = scBits, sc_CdbSystem = scCdbSystem, sc_RegImage = scRegImage, sc_Info = scInfo,
  sc_UserStruct = scUserStruct, sc_SData = scSData, sc_SBss = scSBss, sc_RData = scRData,
  sc_Var = scVar, sc_Common = scCommon, sc_SCommon = scSCommon, sc_VarRegister = scVarRegister,
  sc_Variant = scVariant, sc_SUndefined = scSUndefined, sc_Init = scInit, sc_Max = scMax
}
enum  st {
  st_Nil = stNil, st_Global = stGlobal, st_Static = stStatic, st_Param = stParam,
  st_Local = stLocal, st_Label = stLabel, st_Proc = stProc, st_Block = stBlock,
  st_End = stEnd, st_Member = stMember, st_Typedef = stTypedef, st_File = stFile,
  st_RegReloc = stRegReloc, st_Forward = stForward, st_StaticProc = stStaticProc, st_StaParam = stStaParam,
  st_Constant = stConstant, st_Str = stStr, st_Number = stNumber, st_Expr = stExpr,
  st_Type = stType, st_Max = stMax, st_Nil = stNil, st_Global = stGlobal,
  st_Static = stStatic, st_Param = stParam, st_Local = stLocal, st_Label = stLabel,
  st_Proc = stProc, st_Block = stBlock, st_End = stEnd, st_Member = stMember,
  st_Typedef = stTypedef, st_File = stFile, st_RegReloc = stRegReloc, st_Forward = stForward,
  st_StaticProc = stStaticProc, st_StaParam = stStaParam, st_Constant = stConstant, st_Str = stStr,
  st_Number = stNumber, st_Expr = stExpr, st_Type = stType, st_Max = stMax,
  st_Nil = stNil, st_Global = stGlobal, st_Static = stStatic, st_Param = stParam,
  st_Local = stLocal, st_Label = stLabel, st_Proc = stProc, st_Block = stBlock,
  st_End = stEnd, st_Member = stMember, st_Typedef = stTypedef, st_File = stFile,
  st_RegReloc = stRegReloc, st_Forward = stForward, st_StaticProc = stStaticProc, st_StaParam = stStaParam,
  st_Constant = stConstant, st_Str = stStr, st_Number = stNumber, st_Expr = stExpr,
  st_Type = stType, st_Max = stMax, st_Nil = stNil, st_Global = stGlobal,
  st_Static = stStatic, st_Param = stParam, st_Local = stLocal, st_Label = stLabel,
  st_Proc = stProc, st_Block = stBlock, st_End = stEnd, st_Member = stMember,
  st_Typedef = stTypedef, st_File = stFile, st_RegReloc = stRegReloc, st_Forward = stForward,
  st_StaticProc = stStaticProc, st_StaParam = stStaParam, st_Constant = stConstant, st_Str = stStr,
  st_Number = stNumber, st_Expr = stExpr, st_Type = stType, st_Max = stMax
}
enum  tq {
  tq_Nil = tqNil, tq_Ptr = tqPtr, tq_Proc = tqProc, tq_Array = tqArray,
  tq_Far = tqFar, tq_Vol = tqVol, tq_Max = tqMax, tq_Nil = tqNil,
  tq_Ptr = tqPtr, tq_Proc = tqProc, tq_Array = tqArray, tq_Far = tqFar,
  tq_Vol = tqVol, tq_Max = tqMax, tq_Nil = tqNil, tq_Ptr = tqPtr,
  tq_Proc = tqProc, tq_Array = tqArray, tq_Far = tqFar, tq_Vol = tqVol,
  tq_Max = tqMax, tq_Nil = tqNil, tq_Ptr = tqPtr, tq_Proc = tqProc,
  tq_Array = tqArray, tq_Far = tqFar, tq_Vol = tqVol, tq_Max = tqMax
}
enum  bt {
  bt_Nil = btNil, bt_Adr = btAdr, bt_Char = btChar, bt_UChar = btUChar,
  bt_Short = btShort, bt_UShort = btUShort, bt_Int = btInt, bt_UInt = btUInt,
  bt_Long = btLong, bt_ULong = btULong, bt_Float = btFloat, bt_Double = btDouble,
  bt_Struct = btStruct, bt_Union = btUnion, bt_Enum = btEnum, bt_Typedef = btTypedef,
  bt_Range = btRange, bt_Set = btSet, bt_Complex = btComplex, bt_DComplex = btDComplex,
  bt_Indirect = btIndirect, bt_FixedDec = btFixedDec, bt_FloatDec = btFloatDec, bt_String = btString,
  bt_Bit = btBit, bt_Picture = btPicture, bt_Void = btVoid, bt_Max = btMax,
  bt_Nil = btNil, bt_Adr = btAdr, bt_Char = btChar, bt_UChar = btUChar,
  bt_Short = btShort, bt_UShort = btUShort, bt_Int = btInt, bt_UInt = btUInt,
  bt_Long = btLong, bt_ULong = btULong, bt_Float = btFloat, bt_Double = btDouble,
  bt_Struct = btStruct, bt_Union = btUnion, bt_Enum = btEnum, bt_Typedef = btTypedef,
  bt_Range = btRange, bt_Set = btSet, bt_Complex = btComplex, bt_DComplex = btDComplex,
  bt_Indirect = btIndirect, bt_FixedDec = btFixedDec, bt_FloatDec = btFloatDec, bt_String = btString,
  bt_Bit = btBit, bt_Picture = btPicture, bt_Void = btVoid, bt_Max = btMax,
  bt_Nil = btNil, bt_Adr = btAdr, bt_Char = btChar, bt_UChar = btUChar,
  bt_Short = btShort, bt_UShort = btUShort, bt_Int = btInt, bt_UInt = btUInt,
  bt_Long = btLong, bt_ULong = btULong, bt_Float = btFloat, bt_Double = btDouble,
  bt_Struct = btStruct, bt_Union = btUnion, bt_Enum = btEnum, bt_Typedef = btTypedef,
  bt_Range = btRange, bt_Set = btSet, bt_Complex = btComplex, bt_DComplex = btDComplex,
  bt_Indirect = btIndirect, bt_FixedDec = btFixedDec, bt_FloatDec = btFloatDec, bt_String = btString,
  bt_Bit = btBit, bt_Picture = btPicture, bt_Void = btVoid, bt_Max = btMax,
  bt_Nil = btNil, bt_Adr = btAdr, bt_Char = btChar, bt_UChar = btUChar,
  bt_Short = btShort, bt_UShort = btUShort, bt_Int = btInt, bt_UInt = btUInt,
  bt_Long = btLong, bt_ULong = btULong, bt_Float = btFloat, bt_Double = btDouble,
  bt_Struct = btStruct, bt_Union = btUnion, bt_Enum = btEnum, bt_Typedef = btTypedef,
  bt_Range = btRange, bt_Set = btSet, bt_Complex = btComplex, bt_DComplex = btDComplex,
  bt_Indirect = btIndirect, bt_FixedDec = btFixedDec, bt_FloatDec = btFloatDec, bt_String = btString,
  bt_Bit = btBit, bt_Picture = btPicture, bt_Void = btVoid, bt_Max = btMax
}
enum  lang {
  lang_C = langC, lang_Pascal = langPascal, lang_Fortran = langFortran, lang_Assembler = langAssembler,
  lang_Machine = langMachine, lang_Nil = langNil, lang_Ada = langAda, lang_Pl1 = langPl1,
  lang_Cobol = langCobol, lang_C = langC, lang_Pascal = langPascal, lang_Fortran = langFortran,
  lang_Assembler = langAssembler, lang_Machine = langMachine, lang_Nil = langNil, lang_Ada = langAda,
  lang_Pl1 = langPl1, lang_Cobol = langCobol, lang_C = langC, lang_Pascal = langPascal,
  lang_Fortran = langFortran, lang_Assembler = langAssembler, lang_Machine = langMachine, lang_Nil = langNil,
  lang_Ada = langAda, lang_Pl1 = langPl1, lang_Cobol = langCobol, lang_C = langC,
  lang_Pascal = langPascal, lang_Fortran = langFortran, lang_Assembler = langAssembler, lang_Machine = langMachine,
  lang_Nil = langNil, lang_Ada = langAda, lang_Pl1 = langPl1, lang_Cobol = langCobol
}
enum  glevel {
  glevel_0 = GLEVEL_0, glevel_1 = GLEVEL_1, glevel_2 = GLEVEL_2, glevel_3 = GLEVEL_3,
  glevel_0 = GLEVEL_0, glevel_1 = GLEVEL_1, glevel_2 = GLEVEL_2, glevel_3 = GLEVEL_3,
  glevel_0 = GLEVEL_0, glevel_1 = GLEVEL_1, glevel_2 = GLEVEL_2, glevel_3 = GLEVEL_3,
  glevel_0 = GLEVEL_0, glevel_1 = GLEVEL_1, glevel_2 = GLEVEL_2, glevel_3 = GLEVEL_3
}

Functions/Subroutines

static PTR read_seek PARAMS ((PTR, size_t, off_t, const char *))
static void read_tfile PARAMS ((void))
static void print_global_hdr PARAMS ((struct filehdr *))
static void print_sym_hdr PARAMS ((HDRR *))
static void print_file_desc PARAMS ((FDR *, int))
static void print_symbol PARAMS ((SYMR *, int, const char *, AUXU *, int, FDR *))
static void print_aux PARAMS ((AUXU, int, int))
static void emit_aggregate PARAMS ((char *, AUXU, AUXU, const char *, FDR *))
static const char *st_to_string PARAMS ((st_t))
static const char *sc_to_string PARAMS ((sc_t))
static const char *glevel_to_string PARAMS ((glevel_t))
static const char *lang_to_string PARAMS ((lang_t))
static const char *type_to_string PARAMS ((AUXU *, int, FDR *))
static PTR read_seek (PTR ptr, size_t size, off_t offset, const char *context)
static const char * lang_to_string (lang_t lang)
static const char * sc_to_string (sc_t storage_class)
static const char * st_to_string (st_t symbol_type)
static const char * glevel_to_string (glevel_t g_level)
static const char * type_to_string (AUXU *aux_ptr, int index, FDR *fdp)
static void print_global_hdr (struct filehdr *ptr)
static void print_sym_hdr (HDRR *sym_ptr)
static void print_symbol (SYMR *sym_ptr, int number, const char *strbase, AUXU *aux_base, int ifd, FDR *fdp)
static void print_aux (AUXU u, int auxi, int used)
static void emit_aggregate (char *string, AUXU u, AUXU u2, const char *which, FDR *fdp)
static void print_file_desc (FDR *fdp, int number)
static void read_tfile ()
int main PARAMS ((int, char **))
int main (int argc, char **argv)

Variables

struct filehdr global_hdr
int errors = 0
int want_aux = 0
int want_line = 0
int want_rfd = 0
int want_scope = 0
int tfile = 0
int tfile_fd
off_t tfile_offset
scope_tcur_scope = 0
scope_tfree_scope = 0
HDRR sym_hdr
char * l_strings
char * e_strings
SYMRl_symbols
EXTRe_symbols
LINERlines
DNRdense_nums
OPTRopt_symbols
AUXUaux_symbols
char * aux_used
FDRfile_desc
ulongrfile_desc
PDRproc_desc
char * optarg
int optind
int opterr
type {
   const short   code
   const char   string [10]
stab_names []


Define Documentation

#define __define_stab ( NAME,
CODE,
STRING   )     {(int)CODE, STRING},

Definition at line 249 of file mips-tdump.c.

#define btVoid   26

Definition at line 63 of file mips-tdump.c.

#define CODE_MASK   0x8F300

Definition at line 43 of file mips-tdump.c.

#define MIPS_IS_STAB ( sym   )     (((sym)->index & 0xFFF00) == CODE_MASK)

Definition at line 44 of file mips-tdump.c.

#define MIPS_MARK_STAB ( code   )     ((code)+CODE_MASK)

Definition at line 45 of file mips-tdump.c.

#define MIPS_UNMARK_STAB ( code   )     ((code)-CODE_MASK)

Definition at line 46 of file mips-tdump.c.

#define stStaParam   16

Definition at line 59 of file mips-tdump.c.

#define uchar   unsigned char

Definition at line 49 of file mips-tdump.c.

#define uint   unsigned int

Definition at line 51 of file mips-tdump.c.

#define ulong   unsigned long

Definition at line 52 of file mips-tdump.c.

#define ushort   unsigned short

Definition at line 50 of file mips-tdump.c.


Typedef Documentation

typedef enum bt bt_t

typedef enum glevel glevel_t

typedef enum lang lang_t

typedef enum sc sc_t

typedef struct scope scope_t

typedef enum st st_t

typedef enum tq tq_t


Enumeration Type Documentation

enum bt

Enumerator:
bt_Nil 
bt_Adr 
bt_Char 
bt_UChar 
bt_Short 
bt_UShort 
bt_Int 
bt_UInt 
bt_Long 
bt_ULong 
bt_Float 
bt_Double 
bt_Struct 
bt_Union 
bt_Enum 
bt_Typedef 
bt_Range 
bt_Set 
bt_Complex 
bt_DComplex 
bt_Indirect 
bt_FixedDec 
bt_FloatDec 
bt_String 
bt_Bit 
bt_Picture 
bt_Void 
bt_Max 
bt_Nil 
bt_Adr 
bt_Char 
bt_UChar 
bt_Short 
bt_UShort 
bt_Int 
bt_UInt 
bt_Long 
bt_ULong 
bt_Float 
bt_Double 
bt_Struct 
bt_Union 
bt_Enum 
bt_Typedef 
bt_Range 
bt_Set 
bt_Complex 
bt_DComplex 
bt_Indirect 
bt_FixedDec 
bt_FloatDec 
bt_String 
bt_Bit 
bt_Picture 
bt_Void 
bt_Max 
bt_Nil 
bt_Adr 
bt_Char 
bt_UChar 
bt_Short 
bt_UShort 
bt_Int 
bt_UInt 
bt_Long 
bt_ULong 
bt_Float 
bt_Double 
bt_Struct 
bt_Union 
bt_Enum 
bt_Typedef 
bt_Range 
bt_Set 
bt_Complex 
bt_DComplex 
bt_Indirect 
bt_FixedDec 
bt_FloatDec 
bt_String 
bt_Bit 
bt_Picture 
bt_Void 
bt_Max 
bt_Nil 
bt_Adr 
bt_Char 
bt_UChar 
bt_Short 
bt_UShort 
bt_Int 
bt_UInt 
bt_Long 
bt_ULong 
bt_Float 
bt_Double 
bt_Struct 
bt_Union 
bt_Enum 
bt_Typedef 
bt_Range 
bt_Set 
bt_Complex 
bt_DComplex 
bt_Indirect 
bt_FixedDec 
bt_FloatDec 
bt_String 
bt_Bit 
bt_Picture 
bt_Void 
bt_Max 

Definition at line 139 of file mips-tdump.c.

enum glevel

Enumerator:
glevel_0 
glevel_1 
glevel_2 
glevel_3 
glevel_0 
glevel_1 
glevel_2 
glevel_3 
glevel_0 
glevel_1 
glevel_2 
glevel_3 
glevel_0 
glevel_1 
glevel_2 
glevel_3 

Definition at line 186 of file mips-tdump.c.

enum lang

Enumerator:
lang_C 
lang_Pascal 
lang_Fortran 
lang_Assembler 
lang_Machine 
lang_Nil 
lang_Ada 
lang_Pl1 
lang_Cobol 
lang_C 
lang_Pascal 
lang_Fortran 
lang_Assembler 
lang_Machine 
lang_Nil 
lang_Ada 
lang_Pl1 
lang_Cobol 
lang_C 
lang_Pascal 
lang_Fortran 
lang_Assembler 
lang_Machine 
lang_Nil 
lang_Ada 
lang_Pl1 
lang_Cobol 
lang_C 
lang_Pascal 
lang_Fortran 
lang_Assembler 
lang_Machine 
lang_Nil 
lang_Ada 
lang_Pl1 
lang_Cobol 

Definition at line 172 of file mips-tdump.c.

enum sc

Enumerator:
sc_Nil 
sc_Text 
sc_Data 
sc_Bss 
sc_Register 
sc_Abs 
sc_Undefined 
sc_CdbLocal 
sc_Bits 
sc_CdbSystem 
sc_RegImage 
sc_Info 
sc_UserStruct 
sc_SData 
sc_SBss 
sc_RData 
sc_Var 
sc_Common 
sc_SCommon 
sc_VarRegister 
sc_Variant 
sc_SUndefined 
sc_Init 
sc_Max 
sc_Nil 
sc_Text 
sc_Data 
sc_Bss 
sc_Register 
sc_Abs 
sc_Undefined 
sc_CdbLocal 
sc_Bits 
sc_CdbSystem 
sc_RegImage 
sc_Info 
sc_UserStruct 
sc_SData 
sc_SBss 
sc_RData 
sc_Var 
sc_Common 
sc_SCommon 
sc_VarRegister 
sc_Variant 
sc_SUndefined 
sc_Init 
sc_Max 
sc_Nil 
sc_Text 
sc_Data 
sc_Bss 
sc_Register 
sc_Abs 
sc_Undefined 
sc_CdbLocal 
sc_Bits 
sc_CdbSystem 
sc_RegImage 
sc_Info 
sc_UserStruct 
sc_SData 
sc_SBss 
sc_RData 
sc_Var 
sc_Common 
sc_SCommon 
sc_VarRegister 
sc_Variant 
sc_SUndefined 
sc_Init 
sc_Max 
sc_Nil 
sc_Text 
sc_Data 
sc_Bss 
sc_Register 
sc_Abs 
sc_Undefined 
sc_CdbLocal 
sc_Bits 
sc_CdbSystem 
sc_RegImage 
sc_Info 
sc_UserStruct 
sc_SData 
sc_SBss 
sc_RData 
sc_Var 
sc_Common 
sc_SCommon 
sc_VarRegister 
sc_Variant 
sc_SUndefined 
sc_Init 
sc_Max 

Definition at line 66 of file mips-tdump.c.

enum st

Enumerator:
st_Nil 
st_Global 
st_Static 
st_Param 
st_Local 
st_Label 
st_Proc 
st_Block 
st_End 
st_Member 
st_Typedef 
st_File 
st_RegReloc 
st_Forward 
st_StaticProc 
st_StaParam 
st_Constant 
st_Str 
st_Number 
st_Expr 
st_Type 
st_Max 
st_Nil 
st_Global 
st_Static 
st_Param 
st_Local 
st_Label 
st_Proc 
st_Block 
st_End 
st_Member 
st_Typedef 
st_File 
st_RegReloc 
st_Forward 
st_StaticProc 
st_StaParam 
st_Constant 
st_Str 
st_Number 
st_Expr 
st_Type 
st_Max 
st_Nil 
st_Global 
st_Static 
st_Param 
st_Local 
st_Label 
st_Proc 
st_Block 
st_End 
st_Member 
st_Typedef 
st_File 
st_RegReloc 
st_Forward 
st_StaticProc 
st_StaParam 
st_Constant 
st_Str 
st_Number 
st_Expr 
st_Type 
st_Max 
st_Nil 
st_Global 
st_Static 
st_Param 
st_Local 
st_Label 
st_Proc 
st_Block 
st_End 
st_Member 
st_Typedef 
st_File 
st_RegReloc 
st_Forward 
st_StaticProc 
st_StaParam 
st_Constant 
st_Str 
st_Number 
st_Expr 
st_Type 
st_Max 

Definition at line 95 of file mips-tdump.c.

enum tq

Enumerator:
tq_Nil 
tq_Ptr 
tq_Proc 
tq_Array 
tq_Far 
tq_Vol 
tq_Max 
tq_Nil 
tq_Ptr 
tq_Proc 
tq_Array 
tq_Far 
tq_Vol 
tq_Max 
tq_Nil 
tq_Ptr 
tq_Proc 
tq_Array 
tq_Far 
tq_Vol 
tq_Max 
tq_Nil 
tq_Ptr 
tq_Proc 
tq_Array 
tq_Far 
tq_Vol 
tq_Max 

Definition at line 127 of file mips-tdump.c.


Function Documentation

static void emit_aggregate ( char *  string,
AUXU  u,
AUXU  u2,
const char *  which,
FDR fdp 
) [static]

static const char* glevel_to_string ( glevel_t  g_level  )  [static]

Definition at line 397 of file mips-tdump.c.

References GLEVEL_0, GLEVEL_1, GLEVEL_2, and GLEVEL_3.

static const char* lang_to_string ( lang_t  lang  )  [static]

Definition at line 295 of file mips-tdump.c.

References langAda, langAssembler, langC, langCobol, langFortran, langMachine, langNil, langPascal, and langPl1.

int main ( int argc  ,
char **  argv 
)

int main PARAMS ( (int, char **)   ) 

static const char* type_to_string PARAMS ( (AUXU *, int, FDR *)   )  [static]

static const char* lang_to_string PARAMS ( (lang_t  )  [static]

static const char* glevel_to_string PARAMS ( (glevel_t  )  [static]

static const char* sc_to_string PARAMS ( (sc_t  )  [static]

static const char* st_to_string PARAMS ( (st_t  )  [static]

static void emit_aggregate PARAMS ( (char *, AUXU, AUXU, const char *, FDR *)   )  [static]

static void print_aux PARAMS ( (AUXU, int, int)   )  [static]

static void print_symbol PARAMS ( (SYMR *, int, const char *, AUXU *, int, FDR *)   )  [static]

static void print_file_desc PARAMS ( (FDR *, int)   )  [static]

static void print_sym_hdr PARAMS ( (HDRR *)   )  [static]

static void print_global_hdr PARAMS ( (struct filehdr *)   )  [static]

static void read_tfile PARAMS ( (void  )  [static, read]

Definition at line 77 of file cplus-dem.c.

static PTR read_seek PARAMS ( (PTR, size_t, off_t, const char *)   )  [static]

static void print_aux ( AUXU  u,
int  auxi,
int  used 
) [static]

Definition at line 1037 of file mips-tdump.c.

References printf().

static void print_file_desc ( FDR fdp,
int  number 
) [static]

static void print_global_hdr ( struct filehdr ptr  )  [static]

Definition at line 728 of file mips-tdump.c.

References ctime(), F_AR16WR, F_AR32W, F_AR32WR, F_EXEC, F_LNNO, F_LSYMS, F_RELFLG, flags, printf(), time, and ushort.

static void print_sym_hdr ( HDRR sym_ptr  )  [static]

Definition at line 783 of file mips-tdump.c.

References printf(), and ulong.

static void print_symbol ( SYMR sym_ptr,
int  number,
const char *  strbase,
AUXU aux_base,
int  ifd,
FDR fdp 
) [static]

static PTR read_seek ( PTR  ptr,
size_t  size,
off_t  offset,
const char *  context 
) [static]

Definition at line 259 of file mips-tdump.c.

References exit(), fprintf(), lseek, perror(), read, tfile_fd, tfile_offset, and xmalloc().

static void read_tfile ( void   )  [static]

static const char* sc_to_string ( sc_t  storage_class  )  [static]

static const char* st_to_string ( st_t  symbol_type  )  [static]

static const char* type_to_string ( AUXU aux_ptr,
int  index,
FDR fdp 
) [static]


Variable Documentation

Definition at line 222 of file mips-tdump.c.

char* aux_used

Definition at line 223 of file mips-tdump.c.

const short code

Definition at line 250 of file mips-tdump.c.

Definition at line 212 of file mips-tdump.c.

Definition at line 220 of file mips-tdump.c.

char* e_strings

Definition at line 216 of file mips-tdump.c.

Definition at line 218 of file mips-tdump.c.

int errors = 0

Definition at line 204 of file mips-tdump.c.

Definition at line 224 of file mips-tdump.c.

Definition at line 213 of file mips-tdump.c.

Definition at line 202 of file mips-tdump.c.

char* l_strings

Definition at line 215 of file mips-tdump.c.

Definition at line 217 of file mips-tdump.c.

Definition at line 219 of file mips-tdump.c.

Definition at line 221 of file mips-tdump.c.

char* optarg

Definition at line 115 of file getopt.c.

int opterr

Definition at line 150 of file getopt.c.

int optind

Definition at line 130 of file getopt.c.

Definition at line 226 of file mips-tdump.c.

Definition at line 225 of file mips-tdump.c.

struct { ... } stab_names[]

const char string[10]

Definition at line 250 of file mips-tdump.c.

Definition at line 214 of file mips-tdump.c.

int tfile = 0

Definition at line 209 of file mips-tdump.c.

int tfile_fd

Definition at line 210 of file mips-tdump.c.

Definition at line 211 of file mips-tdump.c.

int want_aux = 0

Definition at line 205 of file mips-tdump.c.

int want_line = 0

Definition at line 206 of file mips-tdump.c.

int want_rfd = 0

Definition at line 207 of file mips-tdump.c.

int want_scope = 0

Definition at line 208 of file mips-tdump.c.


Generated on Wed Apr 8 15:40:03 2009 for Open64 by  doxygen 1.5.6