home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / next / programm / 8014 < prev    next >
Encoding:
Internet Message Format  |  1993-01-06  |  993 b 

  1. Path: sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!cs.utexas.edu!wupost!spool.mu.edu!olivea!news.bbn.com!news.bbn.com!news
  2. From: aking@BBN.COM (Allen King)
  3. Newsgroups: comp.sys.next.programmer
  4. Subject: gdb's symbol table
  5. Message-ID: <lkn9s5INN9uo@news.bbn.com>
  6. Date: 7 Jan 93 03:46:13 GMT
  7. Reply-To: aking@BBN.COM (Allen King)
  8. Organization: Bolt Beranek and Newman Inc., Cambridge MA
  9. Lines: 31
  10. NNTP-Posting-Host: bbn.com
  11.  
  12. GDB doesn't seem to know the correct type of List's objectAt: method
  13. -- the docs say it's an id, but GDB seems to think it's a long:
  14.  
  15.     (gdb) p [[myView subviews] objectAt :1]
  16.     $11 = 2573376
  17.     
  18.     (gdb) whatis [[myView subviews] objectAt :1]
  19.     type = long
  20.     
  21.     (gdb) p *[[myView subviews] objectAt :1]
  22.     $12 = 582312
  23.     
  24.     (gdb) p *(MyView *)[[myView subviews] objectAt :1]
  25.     $10 = {
  26.         isa = 0x8e2a8, 
  27.         nextResponder = 0x2b7030, 
  28.         _reserved = 0x0, 
  29.         frame = {
  30.         origin = {
  31.             x = 116, 
  32.             y = 283
  33.         }, 
  34.         size = {
  35.             width = 219, 
  36.             height = 15
  37.         }
  38.         }, 
  39.         . . .
  40.  
  41.  
  42. Bug, or Not Bug?
  43.