From: Jim Blandy <jimb@codesourcery.com>
To: "Rajesh Warange" <warange.rajesh@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: Into GDB
Date: Wed, 30 Aug 2006 18:50:00 -0000 [thread overview]
Message-ID: <m364gaawhn.fsf@codesourcery.com> (raw)
In-Reply-To: <bbdda8b0608292307l51c233f1wa5949ac647b69986@mail.gmail.com> (Rajesh Warange's message of "Wed, 30 Aug 2006 11:37:27 +0530")
"Rajesh Warange" <warange.rajesh@gmail.com> writes:
> I 'm very much new to GDB. My final goal is to change GDB for a native
> chipset of ours.
> I need some pointers from you in the right direction.
>
> 1. I wanted to know the "chain of functions" followed by GDB when we
> just type "gdb" on the command-prompt.
> 2. also the "chain of functions" when we give commands like step or
> breakpoint etc.
>
> I 'm reading GDB Internals. But its not helping me much in this regard.
> Please help.
We have a manual on the internals of GDB in doc/gdbint.texinfo; it's
not structured as a tutorial, however.
I wouldn't recommend starting with 'main' and trying to see everything
that happens. GDB is a large, old program, and you'll waste a lot of
time trying to figure out stuff you don't need to change: at this
point, GDB has been ported to dozens and dozens of different chips, so
the chip-specific code is pretty nicely isolated in the *-tdep.c
files.
I would recommend finding a *-tdep.c file that seems relatively small
and straightforward, and starting your work from that. Each foo-tdep.c
file has a function at the end called _initialize_foo_tdep that is
automatically called by GDB at startup; that registers a function
called foo_gdbarch_init, which usually appears immediately above it.
That registers callback functions for all the architecture-specific
operations GDB uses.
next prev parent reply other threads:[~2006-08-30 18:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-30 6:07 Rajesh Warange
2006-08-30 18:50 ` Jim Blandy [this message]
2006-08-30 21:44 ` Michael Snyder
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m364gaawhn.fsf@codesourcery.com \
--to=jimb@codesourcery.com \
--cc=gdb@sourceware.org \
--cc=warange.rajesh@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox