<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/linux.git/Documentation/dev-tools/gdb-kernel-debugging.rst, branch v4.19.312</title>
<subtitle>Linux Kernel
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v4.19.312</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v4.19.312'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/'/>
<updated>2023-03-11T15:31:47Z</updated>
<entry>
<title>docs/scripts/gdb: add necessary make scripts_gdb step</title>
<updated>2023-03-11T15:31:47Z</updated>
<author>
<name>Jakob Koschel</name>
<email>jkl820.git@gmail.com</email>
</author>
<published>2023-01-19T23:23:20Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=7f00d922570be19e73902423dbcc7e6cfd464a58'/>
<id>urn:sha1:7f00d922570be19e73902423dbcc7e6cfd464a58</id>
<content type='text'>
[ Upstream commit 6b219431037bf98c9efd49716aea9b68440477a3 ]

In order to debug the kernel successfully with gdb you need to run
'make scripts_gdb' nowadays.

This was changed with the following commit:

Commit 67274c083438340ad16c ("scripts/gdb: delay generation of gdb
constants.py")

In order to have a complete guide for beginners this remark
should be added to the offial documentation.

Signed-off-by: Jakob Koschel &lt;jkl820.git@gmail.com&gt;
Link: https://lore.kernel.org/r/20230112-documentation-gdb-v2-1-292785c43dc9@gmail.com
Signed-off-by: Jonathan Corbet &lt;corbet@lwn.net&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>docs: disable KASLR when debugging kernel</title>
<updated>2017-07-17T20:49:01Z</updated>
<author>
<name>Zhouyi Zhou</name>
<email>zhouzhouyi@gmail.com</email>
</author>
<published>2017-07-07T08:51:45Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=e604f1cb85367d2e5fd4cf253296d190996da81a'/>
<id>urn:sha1:e604f1cb85367d2e5fd4cf253296d190996da81a</id>
<content type='text'>
commit 6807c84652b0 ("x86: Enable KASLR by default") enables KASLR
by default on x86. While KASLR will confuse gdb which resolve kernel
symbol address from symbol table of vmlinux. We should turn off KASLR for
kernel debugging.

Signed-off-by: Zhouyi Zhou &lt;zhouzhouyi@gmail.com&gt;
Reviewed-by: Kieran Bingham &lt;kbingham@kernel.org&gt;
Acked-by: Jan Kiszka &lt;jan.kiszka@siemens.com&gt;
Signed-off-by: Jonathan Corbet &lt;corbet@lwn.net&gt;
</content>
</entry>
<entry>
<title>docs: Sphinxify gdb-kernel-debugging.txt and move to dev-tools</title>
<updated>2016-08-18T23:43:24Z</updated>
<author>
<name>Jonathan Corbet</name>
<email>corbet@lwn.net</email>
</author>
<published>2016-08-08T21:55:49Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=5f0962748d46c63aaf5c46dcb1c8f52dfb7b717f'/>
<id>urn:sha1:5f0962748d46c63aaf5c46dcb1c8f52dfb7b717f</id>
<content type='text'>
Acked-by: Jan Kiszka &lt;jan.kiszka@siemens.com&gt;
Signed-off-by: Jonathan Corbet &lt;corbet@lwn.net&gt;
</content>
</entry>
</feed>
