Git development
 help / color / mirror / Atom feed
From: Matthieu Moy <Matthieu.Moy@grenoble-inp.fr>
To: David Kastrup <dak@gnu.org>
Cc: Mahesh Pujari <pujarimahesh_kumar@yahoo.com>,
	"git\@vger.kernel.org" <git@vger.kernel.org>
Subject: Re: git compile with debug symbols
Date: Tue, 04 Mar 2014 17:03:59 +0100	[thread overview]
Message-ID: <vpqtxbene6o.fsf@anie.imag.fr> (raw)
In-Reply-To: <87a9d6hsf3.fsf@fencepost.gnu.org> (David Kastrup's message of "Tue, 04 Mar 2014 16:53:04 +0100")

David Kastrup <dak@gnu.org> writes:

> Mahesh Pujari <pujarimahesh_kumar@yahoo.com> writes:
>
>> Hello,
>>  I am trying to compile git with debug symbols and failed to do so
>> (basically I am a noob), can some one direct me to links or mailing
>> list (have searched but couldn't find) or doc's so that I can debug
>> git using gdb.
>
> git is compiled with debug symbols by default.

... but:

1) some Git commands are shell-scripts, on which you can't use gdb.

2) some Git commands fork other commands, and then you have to deal with
   multiple processes (i.e. putting a breakpoint in a piece of code
   executed by the subprocess won't work if gdb is running on the other
   one).

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/

  reply	other threads:[~2014-03-04 16:04 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-04 15:46 git compile with debug symbols Mahesh Pujari
2014-03-04 15:53 ` David Kastrup
2014-03-04 16:03   ` Matthieu Moy [this message]
2014-03-04 16:33     ` Mahesh Pujari
2014-03-04 16:43       ` David Kastrup
2014-03-05  6:27         ` Mahesh Pujari
2014-03-04 16:00 ` karthik nayak
2014-03-04 17:53 ` Tanay Abhra

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=vpqtxbene6o.fsf@anie.imag.fr \
    --to=matthieu.moy@grenoble-inp.fr \
    --cc=dak@gnu.org \
    --cc=git@vger.kernel.org \
    --cc=pujarimahesh_kumar@yahoo.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