震撼大气片头:How can I setup target/host symbol table syncronization?

来源:百度文库 编辑:偶看新闻 时间:2024/04/29 22:11:04

Q7: How can I setup target/host symbol table syncronization? .
A7: Please follow the steps

1) Launch Tornado and launch the Project tool.
2) From within the Tornado toolset under "Tools->Options->Tornado Registry (tab)", select "Remote registry" and enter the host IP address (even if the registry is on the host running this Tornado session. This is a known bug). For Unix hosts, set the WIND_REGISTRY environment variable to the host IP address. If this is not set, it will point to the local host (127.0.0.1). To setup this up, you can use "setenv WIND_REGISTRY 147.11.233.6". "147.11.233.6" is the host IP address in this example.
3) From the Project window open your project and make sure that the following VxWorks components have been added to support symbol table synchronization:
INCLUDE_SYM_TBL
INCLUDE_SYM_TBL_INIT
INCLUDE_SYM_TBL_SHOW  amine注: 不准确, 可不使用INCLUDE_SYM_TBL_SYNC
INCLUDE_NET_SYM_TBL  amine注: 不准确, 可使用内建符号表
NOTE: These components may or may not force the inclusion of other dependent components.
4) [OPTIONAL STEP] Also insure the following VxWorks components are added to aid and debug any symbol table problems (NOTE: These components are only used for debugging and are not mandatory):
INCLUDE_SHELL
INCLUDE_PING
INCLUDE_NET_SHOW
NOTE: These components may or may not force the inclusion of other dependent components.
5) Build the project and verify that a vxWorks and vxWorks.sym resulted.
6) Reboot your target and modify the boot parameters (as needed) to load and run the vxWorks image built in step (5). Be sure to keep the vxWorks and vxWorks.sym files in the same directory (loaded from).
7) From Tornado, setup a target server for the recently booted target. At a minimum specify the following:
a) "Target Name/IP Address" (IP addresses tend to work better than names)
b) the complete path and file name for the vxWorks image for "Core File and Symbols"
c) "Synchronize Target and Host Symbol Tables" turned on (checked)
d) Add any other needed target server parameters
8) When the target server is launched the following output (or similar) from the target server window will show success:
tgtsvr (MV5100@svl-tzhaopc): Mon May 05 09:16:06 2003
Checking License ...OK
Connecting to target agent... succeeded.
Attaching C++ interface... succeeded.
Attaching elf OMF reader for PPC CPU family... succeeded.
symbol synchronization: Giving "147.11.41.211" as registry address to the target
Added target_modules to target-server.....done
NOTE: The key line is "Added target_modules to target-server.....done".
9) After step (8) is performed you will have a new task on your target called tSymSync which can be seen after executing "i" from the target shell. If the synchronization had failed the tSymSync task would not exist and probably one or both of the following error messages would have been produced from the target (only upon failure will these appear):
Fatal WTX error (0x10136), synchronization stopped
Fatal WTX error (0x1012f), synchronization stopped
NOTE: If one or both of the above error messages is produced then the correct system configuration did not take place. Recheck the (above) steps and then check the following:
a) Make sure all IP addresses, routes (if needed), gateways (if needed) are correct. b) Make sure all of the correct VxWorks components are included in the project. Make sure that INCLUDE_SYM_TBL_SYNC and INCLUDE_NET_SYM_TBL are included at the least. (Do not INCLUDE_STANDALONE_SYM_TBL instead of INCLUDE_NET_SYM_TBL. INCLUDE_NET_SYM_TBL is required along with the other mandatory includes.) c) Make sure that the target server is configured correctly, has synchronization turned on, specifies the path to the correct vxWorks image for core file and symbols and the correct IP address of the target.