From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.server123.net (Postfix) with ESMTPS for ; Tue, 22 Sep 2020 12:52:24 +0200 (CEST) Received: by mail-wm1-x334.google.com with SMTP id e17so2856521wme.0 for ; Tue, 22 Sep 2020 03:52:24 -0700 (PDT) References: From: Milan Broz Message-ID: <5fa9196a-6e87-7ac2-9d4e-a2895184650c@gmail.com> Date: Tue, 22 Sep 2020 12:52:21 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [dm-crypt] how to debug cryptsetup with gdb? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Keith Broerman , dm-crypt@saout.de 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.