Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Michael Snyder <Michael.Snyder@palmsource.com>
To: "Veeru (वीऱू)" <misterveeru@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: GDB source structure
Date: Fri, 01 Sep 2006 20:57:00 -0000	[thread overview]
Message-ID: <1157144236.4466.80.camel@localhost.localdomain> (raw)
In-Reply-To: <ee4c53600609011324u4170f512pe88c25064fca8579@mail.gmail.com>

On Fri, 2006-09-01 at 13:24 -0700, Veeru (वीऱू) wrote:
> Hi Dan,
> 
> The set of files is reaching close to 600 in number in that directory.
> At this point,
> even doing an ls is difficult, forget separating out different
> architectures and operating systems.
> Some file names have the architecture or OS name in them but even that
> usage is not consistent.
> 
> 
> It would be far easier for folks interested in only a part of the
> distribution to be able to focus
> on the files that they are interested in.
> 
> I do believe though that if there is a method to the madness, it is up
> to the newbies to learn it.
> 
> So, is there a method to the file structure?

Well... you be the judge.

It's mostly flat -- only in a few cases have related files been 
dropped into a subdirectory.  A file's name should give you some
hint as to what it does -- stabsread.c reads stabs, dwarfread.c
reads dwarf etc.  

There are a lot of files, because gdb does a lot of things.

There are some clusters.  *-thread.c deals with debugging threads
on various platforms.  *read.c (| grep -v thread) deals with 
reading various kinds of symbol and object files.  inf*.c deals 
with direct control of the "inferior program" by gdb (jargon for
the program being debugged.

There are 92 files in the family *-tdep.c.  tdep stands for
target dependant code -- each of these files implements debug
support for a specific target architecture (sparc, mips, etc).
Usually only one of these will be used in a specific gdb
configuration (sometimes two, closely related).

Similarly, there are 56 *-nat.c files, each related to 
debugging on a specific native system (eg. sparc-linux-nat.c).

HTH, 
Michael


  parent reply	other threads:[~2006-09-01 20:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <ee4c53600609011321k5a7a538fp933250cc13bb58d6@mail.gmail.com>
2006-09-01 20:24 ` Veeru (वीऱू)
2006-09-01 20:26   ` Daniel Jacobowitz
2006-09-01 20:57   ` Michael Snyder [this message]
2006-09-02 15:28     ` Eli Zaretskii

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=1157144236.4466.80.camel@localhost.localdomain \
    --to=michael.snyder@palmsource.com \
    --cc=gdb@sourceware.org \
    --cc=misterveeru@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