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

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080116222233.GA7938>