I'm new to device drivers in Linux. And my first day task is to debug driver using GDB in Linux.
- I need to debug some XYZ (PCIe device driver supports ethernet) device driver to know about the flow and what is going on device's registers and all.
I have installed the driver with patch file and insmod command.
The device is working properly. But am not getting any solution to debug the device driver.
All I know is that how to debug C program using GDB in Linux(fedora20). I got one link similar to my Problem but from that also I have not got any knowledge.
Can anybody please share your thoughts that how can I start from scratch. I am very specific to learn about Debugging device drivers in Linux. Especially that init or probe function inside my driver I need to know the flow.