Message-Id: Comments: Authenticated sender is From: "Salvador Eduardo Tropea (SET)" Organization: INTI To: myknees AT aol DOT com (Myknees), djgpp AT delorie DOT com Date: Mon, 1 Dec 1997 10:06:06 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: Watching in Borland & djgpp-RHIDE In-reply-to: <19971201032600.WAA15792@ladder01.news.aol.com> Precedence: bulk myknees AT aol DOT com (Myknees) wrote: > Hi. I seem to have run into another difference between Borland TurboC++ Lite > and djgpp. I am using RHIDE1.4 as a UI. The point of the code below was to > see how constructors pass values through parameters, stepping through the code > with F7 and watching the data members d.b1, d.b2, and d.d1. > > When you use TC Lite, the watch window shows that... > d.b1: 1 > d.b2: 2 > d.d1: 3 > ...the values have been set as expected by the time the highlight gets to the > getch function in main. > > The watch window in RHIDE, however, shows that... > d.b1: not available > d.b2: not available > d.d1: 3 > ...yet both statements are printed to the user screen: > in base constructor > in deriv constuctor > ...so both constructors are working. When stepping through the code with F7 > using TCLite, you see it step through the base constructor, but you don't when > using RHIDE. First problem: Get PGCC or a GCC patched with stabs debug info (I have patchs in my Home Page). You are facing a limitation of COFF debug info with inherited members. Second Problem: Use -g3 and no optimizations, you'll see the flow as you like to see it. SET ------------------------------------ 0 -------------------------------- Visit my home page: http://www.geocities.com/SiliconValley/Vista/6552/ Salvador Eduardo Tropea (SET). (Electronics Engineer) Alternative e-mail: set-sot AT usa DOT net - ICQ: 2951574 Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA TE: +(541) 759 0013