Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Mar 2006 08:04:10 +0100
From:      "Norbert Koch" <NKoch@demig.de>
To:        "David Christensen" <dave@randomparity.com>, <freebsd-drivers@freebsd.org>
Subject:   RE: Source/Assembly Listing for Kernel Loadable Modules
Message-ID:  <000001c63e90$aba3f6a0$4801a8c0@ws-ew-3.demig.intra>
In-Reply-To: <22C21BFBEB52B340A1F422CB0D88F5872DFC@snoopy.randomparity.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> I'm sure this is an easy question but I haven't seen the answer during
> my Google search.  I just want to get a source listing from my module
> with the assembly code intermixed with the source code.  The objdump
> utility is supposed to be able to do this (objdump --source filename)
> but when I run it on my kernel module all I get is the assembly output.
> What step did I miss?  I assume there is a change to my Makefile but
> I don't know what it is.

Just compile with a debug switch (I am usually using -g3) and
objdump -S the .ko file you get after linking.

Norbert



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000001c63e90$aba3f6a0$4801a8c0>