* Debug symbols in kernel modules
@ 2012-10-06 11:31 Aft nix
2012-10-07 0:46 ` Mulyadi Santosa
0 siblings, 1 reply; 3+ messages in thread
From: Aft nix @ 2012-10-06 11:31 UTC (permalink / raw)
To: kernelnewbies
Hi,
When i write a makefile to build a kernel module how should i make
sure that it contains debugging symbols?
So that when i will use gdb over serial line to debug the module, i
can use "add-symbol-file"?
--
-aft
^ permalink raw reply [flat|nested] 3+ messages in thread
* Debug symbols in kernel modules
2012-10-06 11:31 Debug symbols in kernel modules Aft nix
@ 2012-10-07 0:46 ` Mulyadi Santosa
2012-12-02 12:38 ` arif
0 siblings, 1 reply; 3+ messages in thread
From: Mulyadi Santosa @ 2012-10-07 0:46 UTC (permalink / raw)
To: kernelnewbies
On Sat, Oct 6, 2012 at 6:31 PM, Aft nix <aftnix@gmail.com> wrote:
> Hi,
>
> When i write a makefile to build a kernel module how should i make
> sure that it contains debugging symbols?
IIRC, it's in kernel hacking section during make config/menuconfig/xconfig.
Find "kernel debug" or something like that. Then check the resulting
config. You should find that CONFIG_DEBUG_INFO=y
Or...if it's a stock kernel from your distro repository, just install
the kernel debug symbol package.
--
regards,
Mulyadi Santosa
Freelance Linux trainer and consultant
blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Debug symbols in kernel modules
2012-10-07 0:46 ` Mulyadi Santosa
@ 2012-12-02 12:38 ` arif
0 siblings, 0 replies; 3+ messages in thread
From: arif @ 2012-12-02 12:38 UTC (permalink / raw)
To: kernelnewbies
On 10/07/2012 06:46 AM, Mulyadi Santosa wrote:
> On Sat, Oct 6, 2012 at 6:31 PM, Aft nix <aftnix@gmail.com> wrote:
>> Hi,
>>
>> When i write a makefile to build a kernel module how should i make
>> sure that it contains debugging symbols?
>
> IIRC, it's in kernel hacking section during make config/menuconfig/xconfig.
>
> Find "kernel debug" or something like that. Then check the resulting
> config. You should find that CONFIG_DEBUG_INFO=y
>
> Or...if it's a stock kernel from your distro repository, just install
> the kernel debug symbol package.
>
Thanks for the reply.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-12-02 12:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-06 11:31 Debug symbols in kernel modules Aft nix
2012-10-07 0:46 ` Mulyadi Santosa
2012-12-02 12:38 ` arif
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 NNTP newsgroup(s).