Re: gdb on Linux Kernel dumps (gdb-kdump)

Mike Frysinger <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
On 23 Sep 2015 00:10, Ales Novak wrote:
> On 2015-9-22 19:56, Andreas Arnez wrote:
> > Right.  As pointed out in the talk at the Cauldron, there are already a
> > few examples in the Linux kernel source tree under "scripts/gdb".  In
> > addition, this post mentions another GDB-enhancing project for Linux
> > kernel debugging, named "LKD":
> >
> >  https://sourceware.org/ml/gdb-patches/2015-06/msg00040.html
> >
> > The LKD project focuses more on live debugging and thus might be a
> > useful complement to gdb-kdump.
> 
> Yes. The scripts in scripts/gdb/linux can be used, if they match the 
> dumped kernel. LKD sounds interesting, being slightly in overlap with 
> gdb-kdump.
> 
> > So, how to continue?  Would you be able to convert gdb-kdump into
> > patches against upstream GDB and send those to the gdb-patches mailing
> > list?
> 
> The github repo is based on the very recent 7.10 release, i.e. it can be 
> applied almost harmlessly. Yet it brings dependance on the libkdumpfile, 
> which in turn brings dependance on liblzo2, libz, libsnappy (these are 
> used in the dump formats), which I don't know how upstream will like. 
> Should I try to send it anyway?

as long as support is behind a configure flag/check, it shouldn't be a
problem.  gdb doesn't generally care about transitive deps either -- in
this case it merely relies on libkdumpfile.  i'd note that libkdumpfile
has all those libs listed as optional too.  its license is GPL, so that
shouldn't be a problem either.
-mike
signature.asc (application/pgp-signature, 819 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJWAdq2AAoJEEFjO5/oN/WB24sQAK7jBMZuqEtBMDY33zkA8SLt
YtyaWOsb9s9q9IFMFI3nA2PkpLL4fZvfxdHnLtuXxBKSxCeah9pKs6a0imgIxooJ
1f9GZ8ww9bU/o9+tC3PF9kt5Qzc0pvLY8tL25Ut6/LeHFH7N5+k3lGdqesguqPSW
oKx1Zt9iZ8+OCA1564ts+9OB4iBLnkXf3SgK3gytrPPaTUU2kjdL8Sj/iR6Ol1MN
yyM9cFQ8NyTKvjBK3aNYedDxHVTouFpjQTDymXdgxMzJA95/vfaX+Y5vIezyTfNw
KUmBBeHh7yAZaZE7niaEwufJopGx5VF/XA5xPsZ32MYJgwytVU3OqE97G2bOI4CQ
fiq3qbVH04ICnHIZCP0yldlz8n4bQUS8C9Qi5+rNVZ8t3fsiRkLBzdVd7VwhJyUK
m7aVN/1pEtSt0SQVNGoFtWmhgxpoRwbpBX9aZCLK0BBbacwhC0RFAuVl+2/M6/0D
w1CKa65a3iISjYLMpwL8lqOAcYhMY093KRQ4+X/kDvYdKvFXUmHWdJyVFBWxLNFM
D9I+9uPufu1kmBDByKxO/dupxbAYx9vfFKhAduIadu/Y+m9T9pQKruU93t3v7SUB
+H6EmfzhhNV61kwcU/EAQBFYYsiEkrEb3Dwu6sj26skBlTYJcwce5BuEtSNstz21
3IC9GHEfTqU8bvEraHCZ
=za/z
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.