Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Jan 2008 03:52:33 +0530
From:      =?utf-8?B?4KSG4KS24KWA4KS3IOCktuClgeCkleCljeCksg==?= Ashish Shukla <>
Subject:   Re: Pls help: regarding gdb internals
Message-ID:  <20080116222233.GA7938@chateau.d.lf>
In-Reply-To: <>
References:  <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help

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

| =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=
allocation), or Heap (runtime-dynamic allocation).

Ashish Shukla =E0=A4=86=E0=A4=B6=E0=A5=80=E0=A4=B7 =E0=A4=B6=E0=A5=81=E0=A4=
=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 --- --

Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

Version: GnuPG v1.4.6 (GNU/Linux)



Want to link to this message? Use this URL: <>