Re: Using GDB and debugging a kernel module

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

 



Hi..

On Thu, Oct 30, 2008 at 10:05 PM, Ian Brown <ianbrn@xxxxxxxxx> wrote:
> Hello,
>  I am developing a kernel module (called myModule);
>  I have errors when running it in the kernel log; and I want to know in
>  which line of my module exactly did this error occur.
>
>  in the kernel log I have:
>  ...
>  ...
>  myModule_ioctl+0x4b1/0x864
>  [<ffffffff8025c509>] ret_from_intr+0x0/0xa
>  <EOI>  [<ffffffff8025f952>] copy_user_generic+0x9e/0x126
>  [<ffffffff8833fe78>] :myModule:myModule_ioctl+0x4b1/0x864

i think the number after the plus "+" sign of offset from the
beginning of the offending function (in this case MyModule).

So let's say function A starts at 0x100 and it has "+AA" then you will
know the offending codes is around 0x1AA

regards,

Mulyadi.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux