Re: how to debug cryptsetup with gdb?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
_______________________________________________
dm-crypt mailing list
dm-crypt@xxxxxxxx
https://www.saout.de/mailman/listinfo/dm-crypt




[Index of Archives]     [Device Mapper Devel]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux