Article View: comp.lang.objective-c
Article #420Re: Debugging Objective C with gcc/gdb
From: Seth Tisue
Date: Wed, 03 Aug 1994 23:41
Date: Wed, 03 Aug 1994 23:41
21 lines
1650 bytes
1650 bytes
In article <MOHR-ERIC.94Aug3100037@nebula.cs.yale.edu>, eric mohr <mohr-eric@CS.Yale.Edu> wrote: >I compiled libobjc.a without debugging information and am able to single-step >into a method call without landing in the ObjC runtime. I'll try recompiling it making sure -g is off. >I have never been able to look at instance variables of an object typed id, no >matter what contortions of casts I go through. Other posters seem to suggest >that it SOMETIMES works. If anybody has an example where it works, please >post it. Try: ((struct Myclass *)myinstance)->ivar (Thanks to various people for helping me with this... I was omitting the extra layer of parentheses.) I just tried it to make sure I got the syntax correct. -- == Seth Tisue (s-tisue@anl.gov)
Technical Details
Message-ID:
<1994Aug3.234100.1702@midway.uchicago.edu>Path:
arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!hookup!swrinde!howland.reston.ans.net!europa.eng.gtefsd.com!newsxfer.itd.umich.edu!ncar!uchinews!quads!tisuReferences:
<1994Jul26.185852.14238@midway.uchicago.edu> <MOHR-ERIC.94Aug3100037@nebula.cs.yale.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,2f8d99d540d413bb X-Google-Attributes: gid11318c,public X-Google-Thread: 1111a3,2f8d99d540d413bb X-Google-Attributes: gid1111a3,public X-Google-ArrivalTime: 1994-08-03 17:43:32 PST Newsgroups: comp.lang.objective-c,gnu.gcc.help Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!hookup!swrinde!howland.reston.ans.net!europa.eng.gtefsd.com!newsxfer.itd.umich.edu!ncar!uchinews!quads!tisu From: tisu@quads.uchicago.edu (Seth Tisue) Subject: Re: Debugging Objective C with gcc/gdb Message-ID: <1994Aug3.234100.1702@midway.uchicago.edu> Sender: news@uchinews.uchicago.edu (News System) Reply-To: tisu@midway.uchicago.edu Organization: Plaster Cramp Press References: <1994Jul26.185852.14238@midway.uchicago.edu> <MOHR-ERIC.94Aug3100037@nebula.cs.yale.edu> Date: Wed, 3 Aug 1994 23:41:00 GMT Lines: 21