From owner-freebsd-questions@FreeBSD.ORG Wed Jan 16 22:22:35 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 814D816A41A for ; Wed, 16 Jan 2008 22:22:35 +0000 (UTC) (envelope-from wahjava@gmail.com) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.185]) by mx1.freebsd.org (Postfix) with ESMTP id 3412313C442 for ; Wed, 16 Jan 2008 22:22:35 +0000 (UTC) (envelope-from wahjava@gmail.com) Received: by rv-out-0910.google.com with SMTP id l15so377900rvb.43 for ; Wed, 16 Jan 2008 14:22:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject:message-id:mail-followup-to:references:mime-version:content-type:content-disposition:in-reply-to:x-face:x-attribution:x-os:x-os-version:x-os-architecture:x-uptime:face:organization:pgp:x-pgp:x-pgp-fp:user-agent:sender; bh=idOre3zCVJTlhh6xd66KEEJd7HNz5f8+nFcVrvNL/rU=; b=L+V2x9fl65f6pmV/fGtzG0I3lWoPNhNDLsdqfG5/g2RHbG5+pZ2fb56XX5Rp1UHqWci4CqCK8d53QvUt2C4hsFojIR/4ZbwKNIzfTdCLbcwoQo1dJkAdsS/xBmvkWuilma+RiVluK6ydCl00jE6j5VICzHTji53JFTbPE9V1/uY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:mail-followup-to:references:mime-version:content-type:content-disposition:in-reply-to:x-face:x-attribution:x-os:x-os-version:x-os-architecture:x-uptime:face:organization:pgp:x-pgp:x-pgp-fp:user-agent:sender; b=ghBCKlIk9pex18/a3eNPjHJAYv7s8qH2sQHE/J5JcPBlq6RSND+tChGnFsBHxDCbQS0W0AOTIak1t70NC0bEfItGLhMbI9p22d4AK1fHXYPJg+12wBXK/kQ0swxiHjIJYfD3OsL2AGM42tOkKdBhL2SBm3QBRcnglWXqm7E9KJM= Received: by 10.141.22.1 with SMTP id z1mr915060rvi.282.1200522153334; Wed, 16 Jan 2008 14:22:33 -0800 (PST) Received: from chateau.d.lf ( [122.162.237.150]) by mx.google.com with ESMTPS id l32sm3575694rvb.2.2008.01.16.14.22.30 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 16 Jan 2008 14:22:32 -0800 (PST) Date: Thu, 17 Jan 2008 03:52:33 +0530 From: =?utf-8?B?4KSG4KS24KWA4KS3IOCktuClgeCkleCljeCksg==?= Ashish Shukla To: freebsd-questions@freebsd.org Message-ID: <20080116222233.GA7938@chateau.d.lf> Mail-Followup-To: freebsd-questions@freebsd.org References: <320867.62493.qm@web90409.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ReaqsoxgOBHFXBhH" Content-Disposition: inline In-Reply-To: <320867.62493.qm@web90409.mail.mud.yahoo.com> X-Face: "\:nMpJ)EA!j>2nEu-[(+&o:N+CtL^AS\, Jv*LO5qBr#W2.\=d Subject: Re: Pls help: regarding gdb internals X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jan 2008 22:22:35 -0000 --ReaqsoxgOBHFXBhH Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable ,--[ On Wed, Jan 16, 2008 at 01:24:14PM -0800, Arun Paneri wrote: | Thanks Aryeh & Chuck.=20 | Well, I am trying to solve issues related to GDB. Like, gdb prints wrong = values of few parameteres eg "this" pointer, when we give "backtrace" or "x= /10x $ebp" command in core of our company product.=20 The passing of 'this' pointer depends on the C++ calling convention in use. | =20 | I think it reads wrong value from symbol table or stack frame. So i am tr= ying to put a break point and see what exactly gdb reads for that perticule= r frame when it shows a wrong data. But dont know where exactly it reads da= ta from the symbol table or stack frame. AFAIK, symbol table simply stores symbols and their addresses, not data. Data you'll find in Data Section (readonly/static allocation), Stack (runti= me-static allocation), or Heap (runtime-dynamic allocation). HTH --=20 Ashish Shukla =E0=A4=86=E0=A4=B6=E0=A5=80=E0=A4=B7 =E0=A4=B6=E0=A5=81=E0=A4= =95=E0=A5=8D=E0=A4=B2 http://wahjava.wordpress.com/ =C2=B7-- =C2=B7- =C2=B7=C2=B7=C2=B7=C2=B7 =C2=B7--- =C2=B7- =C2=B7=C2=B7=C2= =B7- =C2=B7- =C2=B7--=C2=B7-=C2=B7 --=C2=B7 -- =C2=B7- =C2=B7=C2=B7 =C2=B7-= =C2=B7=C2=B7 =C2=B7-=C2=B7-=C2=B7- -=C2=B7-=C2=B7 --- -- --ReaqsoxgOBHFXBhH Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHjoOpHy+EEHYuXnQRAtUcAKCnGIN9xX7A7pDQDhBxcxhOLm0jXwCgoJ7h PyPbYl6KXGP3eiw7Q0jut58= =5XxL -----END PGP SIGNATURE----- --ReaqsoxgOBHFXBhH--