Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


Closed Thread
  Search this Thread
Old 09-29-2008, 02:46 AM   #1
LQ Newbie
Registered: Sep 2008
Location: California, USA
Distribution: Generally Redhat
Posts: 2

Rep: Reputation: 0
Breakpoint in Kernel module

I am trying to put breakpoint in the module initialization code of our
networking driver. Since this is PCIe device, pci_probe routine gets
called during module insertion (explicit insmod by user). I am not sure
how I can break into this routine for 2.6 kernels. Also at this point
/proc/modules or /sys/modules/<module_name>/.text is not updated. So even
if it possible to break in how can I get the symbols ?

Also I do not want to call kgdb_breakpoints() explicitly from my code,
because this may not work for slightly older version of the 2.6 kernels.

Any suggestions / help is welcome.

Old 09-30-2008, 08:56 AM   #2
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

Continue here:

Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can a kernel module call the function of another kernel module sceadu Programming 3 05-02-2011 02:22 AM
[Error] Kernel Module : No kernel module build environment saman007uk Debian 7 09-09-2006 06:34 PM
gdb breakpoint doesnt work? Thinking Programming 3 09-29-2005 06:36 AM
Trace/breakpoint trap received when running glxgears QtCoder Linux - Software 0 01-27-2004 01:21 PM
kernel module ignorant newbie looking for any one with kernel module knowledge cpoet Slackware 4 11-24-2003 09:37 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:24 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration