Reply by March 30, 20052005-03-30
I found the information I was missing in SPRAA07.  The -g Code Generation 
Tool defaults to COFF/DWARF format instead of COFF/STABS format.  I changed 
to -gt to generate legacy COFF/STABS format and everything is working again. 
I'll have to read up on the DWARF format, but at least I can use the new 
tools.

<jtrantow@ieee.org> wrote in message news:yCA2e.6388$X84.1100@fe02.lga...
> We have a third party tool which reads the symbol table and communicates > to the DSP over different interfaces (serial, JTAG, etc..) This tool has > been in use for approximately 10 years and has worked with many versions > of the TI tools. (C2x, 3x, 4x, 54, 55, 67...) Using the CCS 3.0.0.21 > tools for the C67, the structure information we need is no longer in the > symbol table but the watch window still understands the information. The > exact same code and exact same compiler, linker options work fine with CCS > 2.21. > > I have two questions. > 1) Where does this information now reside? > 2) How can I get the symbolic information back into the *.out file? > > typedef struct _ThrControl > { > Int decode_volume; > Int encode_volume; > OUTPUT_SELECT output_select; // An enumeration. > Bool record; > char filename_encode[13]; > char filename_decode[13]; > }ThrControl; > Our tool can dump a text representation of the symbol file. Here are the > relevant snippets. > CCS 2.21 (Structure represented by a T_STRUCT) > > // First, we see the definition of a structure with all it's Member Of > Structures. > ThrControl sym 5911 C_STRTAG value 0x00000000 N_DEBUG T_STRUCT > [NON,NON,NON,NON,NON,NON] AUX ENTRY > aux 5912 tag_names size 0 index 5927 > decode_volume sym 5913 C_MOS Offset in bits 0x00000000 N_ABS T_INT > [NON,NON,NON,NON,NON,NON] AUX ENTRY > aux 5914 names_structs tag index 0 size 32 > encode_volume sym 5915 C_MOS Offset in bits 0x00000020 N_ABS T_INT > [NON,NON,NON,NON,NON,NON] AUX ENTRY > aux 5916 names_structs tag index 0 size 32 > output_select sym 5917 C_MOS Offset in bits 0x00000040 N_ABS T_ENUM > [NON,NON,NON,NON,NON,NON] AUX ENTRY > aux 5918 names_structs tag index 6085 size 32 > record sym 5919 C_MOS Offset in bits 0x00000060 N_ABS T_USHORT > [NON,NON,NON,NON,NON,NON] AUX ENTRY > aux 5920 names_structs tag index 0 size 16 > filename_encode sym 5921 C_MOS Offset in bits 0x00000070 N_ABS T_CHAR > [ARY,NON,NON,NON,NON,NON] AUX ENTRY > aux 5922 arrays tag_index 0 size 104 dim[13,0,0,0] > filename_decode sym 5923 C_MOS Offset in bits 0x000000d8 N_ABS T_CHAR > [ARY,NON,NON,NON,NON,NON] AUX ENTRY > aux 5924 arrays tag_index 0 size 104 dim[13,0,0,0] > .eos sym 5925 C_EOS value 0x00000000 N_DEBUG T_STRUCT > [NON,NON,NON,NON,NON,NON] AUX ENTRY > aux 5926 end_of_structure tag_index 5911 size 0 > $$fake0 sym 5927 C_ENTAG value 0x00000000 N_DEBUG T_ENUM > [NON,NON,NON,NON,NON,NON] AUX ENTRY > aux 5928 tag_names size 0 index 5935 > > > // Typedef > ThrControl sym 6855 C_TPDEF value 0x00000000 N_DEBUG T_STRUCT > [NON,NON,NON,NON,NON,NON] AUX ENTRY > aux 6856 names_structs tag index 5911 size 320 > > // Here is the instance of the structure. > > thrControl sym 7572 C_EXT Relocatable address 0x0003151c 1240452 T_STRUCT > [NON,NON,NON,NON,NON,NON] AUX ENTRY > aux 7573 names_structs tag index 5911 size 320 > > > CCS 3.0 (Structure is now represented by a T_INT) > > thrControl sym 6692 C_EXT Relocatable address 0x0002aa24 1240452 T_INT > [NON,NON,NON,NON,NON,NON] NO AUX ENTRY > > >
Reply by March 30, 20052005-03-30
We have a third party tool which reads the symbol table and communicates to 
the DSP over different interfaces (serial, JTAG, etc..)  This tool has been 
in use for approximately 10 years and has worked with many versions of the 
TI tools. (C2x, 3x, 4x, 54, 55, 67...)   Using the CCS 3.0.0.21 tools for 
the C67, the structure information we need is no longer in the symbol table 
but the watch window still understands the information.  The exact same code 
and exact same compiler, linker options work fine with CCS 2.21.

I have two questions.
1) Where does this information now reside?
2) How can I get the symbolic information back into the *.out file?

typedef struct _ThrControl
{
    Int decode_volume;
    Int encode_volume;
    OUTPUT_SELECT output_select;    // An enumeration.
    Bool record;
    char filename_encode[13];
    char filename_decode[13];
}ThrControl;
Our tool can dump a text representation of the symbol file.  Here are the 
relevant snippets.
CCS 2.21 (Structure represented by a T_STRUCT)

// First, we see the definition of a structure with all it's Member Of 
Structures.
ThrControl sym 5911 C_STRTAG value 0x00000000 N_DEBUG T_STRUCT 
[NON,NON,NON,NON,NON,NON] AUX ENTRY
aux 5912 tag_names size 0 index 5927
decode_volume sym 5913 C_MOS Offset in bits 0x00000000 N_ABS T_INT 
[NON,NON,NON,NON,NON,NON] AUX ENTRY
aux 5914 names_structs tag index 0 size 32
encode_volume sym 5915 C_MOS Offset in bits 0x00000020 N_ABS T_INT 
[NON,NON,NON,NON,NON,NON] AUX ENTRY
aux 5916 names_structs tag index 0 size 32
output_select sym 5917 C_MOS Offset in bits 0x00000040 N_ABS T_ENUM 
[NON,NON,NON,NON,NON,NON] AUX ENTRY
aux 5918 names_structs tag index 6085 size 32
record sym 5919 C_MOS Offset in bits 0x00000060 N_ABS T_USHORT 
[NON,NON,NON,NON,NON,NON] AUX ENTRY
aux 5920 names_structs tag index 0 size 16
filename_encode sym 5921 C_MOS Offset in bits 0x00000070 N_ABS T_CHAR 
[ARY,NON,NON,NON,NON,NON] AUX ENTRY
aux 5922 arrays tag_index 0 size 104 dim[13,0,0,0]
filename_decode sym 5923 C_MOS Offset in bits 0x000000d8 N_ABS T_CHAR 
[ARY,NON,NON,NON,NON,NON] AUX ENTRY
aux 5924 arrays tag_index 0 size 104 dim[13,0,0,0]
.eos sym 5925 C_EOS value 0x00000000 N_DEBUG T_STRUCT 
[NON,NON,NON,NON,NON,NON] AUX ENTRY
aux 5926 end_of_structure tag_index 5911 size 0
$$fake0 sym 5927 C_ENTAG value 0x00000000 N_DEBUG T_ENUM 
[NON,NON,NON,NON,NON,NON] AUX ENTRY
aux 5928 tag_names size 0 index 5935


// Typedef
ThrControl sym 6855 C_TPDEF value 0x00000000 N_DEBUG T_STRUCT 
[NON,NON,NON,NON,NON,NON] AUX ENTRY
aux 6856 names_structs tag index 5911 size 320

// Here is the instance of the structure.

thrControl sym 7572 C_EXT Relocatable address 0x0003151c 1240452 T_STRUCT 
[NON,NON,NON,NON,NON,NON] AUX ENTRY
aux 7573 names_structs tag index 5911 size 320


CCS 3.0 (Structure is now represented by a T_INT)

thrControl sym 6692 C_EXT Relocatable address 0x0002aa24 1240452 T_INT 
[NON,NON,NON,NON,NON,NON] NO AUX ENTRY