Page 1 of 1

KGDB debugging of ubuntu guest PCI Express ETH device

Posted: 10. Nov 2012, 23:06
by Shamir_R
Hi all,

I have Ubuntu host running Ubuntu guest.
I use KGDB to debug the guest kernel PCI sub-system.
When I set breakpoints at the PCI device core functions (see below) and I try to "continue" from break to break the kernel boot fail and never complete.
Sending Sys Req key to the debugged kernel ( # VBoxManage controlvm Kernel-Devel keyboardputscancode 1d 38 54 22 a2 d4 b8 9d ) does not give me the clue why the kernel boot stopped if I jump from break to break.

Any idea is appreciated.

My .gdbinit file:

#main pci subsystem entry functions
break pci_enable_device_mem
break pci_request_selected_regions_exclusive
break pci_enable_pcie_error_reporting
break pci_set_master
break pci_save_state
break pci_set_drvdata
break pci_resource_start
break pci_resource_len
break pci_resource_flags


# Intel Corporation 82540EM Gigabit Ethernet Controller (rev 02) device

## pci entry functions
break e1000_init_module
break e1000_probe
break e1000_remove
break e1000_shutdown

## general entry functions
break e1000_sw_init
break e1000e_enable_mng_pass_thru
break e1000_validate_nvm_checksum
break e1000e_read_mac_addr
break e1000_update_phy_info