How does GDB find the symbol of a function when backtracing in MIPS Linux? -


I am trying to implement a function to backstrass the crashed user space process. Since I'm working in the kernel, I do not have any library's luxury and the rendered backattack function does not support MIPS architecture. I'm just wondering what the GDB does the version of the kernel is 2.6.21.

I think you can refer to the implementation. /P>

The use of Opprofile uses frame-pointer to get back-trace information, so it requires user space application and its related libraries which are frame-pointer enabled. ("- fno-omit-frame-pointer" option).

Another way is if you have debug information in user applications, you may need to check the user application's information, how to call a function with enough information on the DWARF call frame notification debugger It gives information, so that each argument of this function is detected, locate the current call frame, and locate the call frame for calling information.

If you simply crawl supported backtracks of "Frame-Pointer" or a debug information, then you can refer to the user's application's mop instructions, reference of the child (SP, IP, RP) To get the loop through the MIP ABI specification (SP, IP, RP) for parents, it takes a little more complicated and time than separating many instructions in memory, but it is not bad Does not. For example, for many rituals, begging is an "ed sp, SP, -32" like education, and you will know that parents are present and present 32.

Second And in the third way you have to apply it manually because you work in the kernel.


Comments

Popular posts from this blog

c++ - Linux and clipboard -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -