home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / vxworks / 1198 < prev    next >
Encoding:
Text File  |  1993-01-12  |  1.8 KB  |  51 lines

  1. Xref: sparky comp.os.vxworks:1198 comp.sys.sgi:18724
  2. Path: sparky!uunet!cs.utexas.edu!sun-barr!ames!olivea!sgigate!sgi!quasar.mti.sgi.com!davea
  3. From: davea@quasar.mti.sgi.com (David B.Anderson)
  4. Newsgroups: comp.os.vxworks,comp.sys.sgi
  5. Subject: Re: sgi CC v3.1 & VxGDB incompatible
  6. Message-ID: <uq4di0g@sgi.sgi.com>
  7. Date: 13 Jan 93 00:05:56 GMT
  8. Sender: davea@quasar.mti.sgi.com
  9. Organization: Silicon Graphics, Inc.  Mountain View, CA
  10. Lines: 39
  11.  
  12. In article <1993Jan12.101638.901@nrlvx1.nrl.navy.mil> dyer@nrlvx1.nrl.navy.mil (Doug Dyer) writes:
  13. >Hi folks,
  14. >
  15. >    I am using an SGI indigo r3000 as a vxworks host
  16. >(Iris 4D1-4.1) with cc (v3.10)  and VxGDB to debug software (v1.1).  
  17. >The following problems occur when I load a file into the debugger:
  18. >
  19. >if the source code has a "struct" in it :
  20. >    unknown symbol type 1a 
  21. >if the source code has a "union" in it:
  22. >    unknown symbol type 1b
  23.  
  24. Let me make a guess: those numbers are hex and are the st* value from
  25. the symbol table.  0x1a === 26
  26.  
  27. The sgi-generated symbol tables have 3 new values as compared with
  28. those from pre-merger-MIPS & DEC:
  29.  
  30. From /usr/include/symconst.h:
  31. #ifdef __sgi
  32. #define stStruct        26      /* begin Struct kind of stBlock */
  33. #define stUnion         27      /* begin Union kind of stBlock */
  34. #define stEnum          28      /* begin Enum  kind of stBlock */
  35. #endif
  36.  
  37.  
  38. These are to be treated just like an stBlock except that they are
  39. specific and specify the *type* of the block.
  40.  
  41. Anywhere in GDB it tests for stBlock, simply look for any of
  42.     stBlock stStruct stUnion stEnum
  43. (though of course those new ones only apply to data, not code blocks,
  44. you need not worry about that since the new ones never appear on
  45. code blocks).
  46.  
  47. You may find that this information is of use to gdb.
  48.  
  49. Hope this helps.  This answer *is* just a guess....
  50. [ David B. Anderson             (415)390-4263             davea@sgi.com ]
  51.