DM-Crypt Archive mirror
 help / color / mirror / Atom feed
From: Milan Broz <gmazyland@gmail.com>
To: Keith Broerman <keith.broerman@gmail.com>, dm-crypt@saout.de
Subject: Re: [dm-crypt] how to debug cryptsetup with gdb?
Date: Tue, 22 Sep 2020 12:52:21 +0200	[thread overview]
Message-ID: <5fa9196a-6e87-7ac2-9d4e-a2895184650c@gmail.com> (raw)
In-Reply-To: <CAM17syhgj-ScySggJe9P-toctcP1G7Ge6kXNRUHcpnXREFP_1g@mail.gmail.com>

On 21/09/2020 23:10, Keith Broerman wrote:
> I have built the cryptsetup executable and in trying to understand how it works I would like to use gdb to step thru the code and examine the data structures, etc. But cryptsetup is normally launched using the cryptsetup script so gdb can't operate on that directly.  Is there a gdbinit script available that gets things ready so that gdb can open the ./.libs/cryptsetup executable?

Use libtool and run (from git root):

libtool --mode=execute gdb --args ./cryptsetup --debug $@

m.

      reply	other threads:[~2020-09-22 10:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-21 21:10 [dm-crypt] how to debug cryptsetup with gdb? Keith Broerman
2020-09-22 10:52 ` Milan Broz [this message]

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=5fa9196a-6e87-7ac2-9d4e-a2895184650c@gmail.com \
    --to=gmazyland@gmail.com \
    --cc=dm-crypt@saout.de \
    --cc=keith.broerman@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).