This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Need to understand GDB internals .
- From: Jeremy Bennett <jeremy dot bennett at embecosm dot com>
- To: Diptopal Basu <diptopal dot basu at gmail dot com>
- Cc: gdb <gdb at sourceware dot org>
- Date: Sun, 23 Aug 2009 11:12:00 +0100
- Subject: Re: Need to understand GDB internals .
- References: <bd97640b0908100300q1003a80fjd3a585a35920f388@mail.gmail.com> <1249909904.23899.16.camel@thomas> <bd97640b0908102224j73fc2bdcj2e62c123ad920f8d@mail.gmail.com> <bd97640b0908221437y23882b10n51406535e64096ff@mail.gmail.com>
- Reply-to: jeremy dot bennett at embecosm dot com
On Sun, 2009-08-23 at 03:07 +0530, Diptopal Basu wrote:
> Hi Jeremy ,
>
> I have started going through the GDB internals manual ,I cant't say
> I understand much of it , perhaps I need to go through the code also
> simultaneously .
Hi Diptopal,
Definitely. It's an aid to understanding the code, not a standalone
tutorial. It is not complete, nor is it all up to date. Once you
understand an area, you may like to contribute patches to improve the
manual for future readers.
> I will give you an instance of where I am getting stuck , take for
> example the Breakpoints chapter , it gives an overview of the
> breakpoints implementation but does not really describe the exact
> algorithm but refers to the files which contain the code, I think I
> have to get into the code to understand this . I need to understand
> how GDB works conceptually . Could you suggest me a starting point
> please , the GDB internals manual does not seem have enough
> information .
The Embecosm application notes try to provide some of this. Partly by
putting individual routines in a bigger context, and partly by
explaining "why" as well as "how" things happen. But they only touch the
surface. They should help you understand the internals manual better,
but they don't replace it.
> Once I get a hang of what GDB is doing I could move forward to the
> other materials you have referred me to in one of your previous
> mails .
You may like to look at the Embecosm Application Note 3 early on, to
help you understand the GDB internals manual.
HTH,
Jeremy
--
Tel: +44 (1590) 610184
Cell: +44 (7970) 676050
SkypeID: jeremybennett
Email: jeremy.bennett@embecosm.com
Web: www.embecosm.com