|
Your method upstairs is theoretically possible, but it is too troublesome... and adds a lot of unnecessary overhead.
As far as I know, vxworks should use a similar method toyy偶不会. In the process of compiling the entire system, a symbol table .c file is generated, and finally this .c file is also linked into the final generated file. When you trace the stack, you can find it in that table. I think the role of the table is more than just the trace stack. The command line system provided by vxworks allows us to call the function by entering the function name, which should also be the credit of the .c file. As for files such as pdb, map, etc., it should only be meaningful when searching manually. |
|