How does - line no to address conversion- take place in Kernel-debugger?
Can anybody help me out with this?
My question is with reference to Working of Kernel – debuggers..
Q: When a debugger is given final executable file, it creates a file in which all symbol information is kept out of that executable file.
Later, when it asks user to specify breakpoint, user will specify the line from his source-code, and debugger converts this line no to actual address where it resides and puts a break-point there,
Now my question is how debugger does this?
As per my knowledge this is handled with elf-headers and different sections, storing symbol information. But question is how can I do the same?
To be precise , how lineno - to - address conversion can be implemented in kernel - debugger?
If anybody can provide me with the information, it will be more than welcome.
|