X hits on this document

Powerpoint document

Using a JTAG in Linux Driver Debugging - page 42 / 48

168 views

0 shares

0 downloads

0 comments

42 / 48

04/16/2008 - Copyright © 2008 The PTR Group Inc.

CELF-2008-SVC-42

Debugging Loadable Modules #2

We’ll need to breakpoint just before the control is transferred to the module’s __init

Somewhere around line 1907 of module.c

Once the breakpoint is encountered, we can walk the module address list to find the assigned address for the module

We then use the add-symbol-file GDB command to add the debug symbols for the driver at the address for the loaded module

E.g., add-symbol-file ./mydriver.ko 0x<addr> -e .init.text

Document info
Document views168
Page views168
Page last viewedSat Jan 21 06:40:52 UTC 2017
Pages48
Paragraphs607
Words3505

Comments