zoukankan      html  css  js  c++  java
  • [转载]Trace32 symbol 路径调整

    Trace32 symbol 路径调整

    Issue:

    在JTAG 调试过程中,经常遇到一个情况: binary elf/axf 文件是在某台特定编译服务器产生的,但是本地源代码是在另一个路径。这样导致 data.load 命令导入 elf/axf 文件后 经常 找不到对应的源文件。

    Solution:

    Lauterbach Trace32 软件包本身提供了这个重新设定源文件路径的功能。实际操作备忘记录在此。

    t32_symbol_file_path

    方法一:

    y.spath.list 命令后,显示出对话框,然后手动添加需要的源文件路径。

    方法二:

    y.spath.SETRECURSEDIR <path> 命令输入后,可以通过 y.spath.list  窗口观察到对应的源文件路径被找到

    y_spath_setrecursedir

    方法三:

    1)去除编译路径前缀 (针对第一张图的路径去掉 sdbjenkinsworkspaceBUILD_Branch_sofia3g_r_mr1_Cherry_Pick_ctegerrit  前缀)

    data.load C:zyangLogsSofia3G_Rpre-merge2015-09-09cp_1841mobilevisor.elf  /strippart 5.

    2)设置新的相对路径

    y.spath.setbasedir M:workspacesofia3g_r_mr1_cte

    3)/RelPATH 参数: 去除编译目录的绝对路径, 保留相对路径。

    data.load.elf  c:slb.elf /RelPATH

    Data.Load 功能

    • All symbol and debug information already available in TRACE32 is removed.

    • The code/data provided by is loaded to the target memory.

    • The symbol and debug information provided by is loaded into TRACE32.

    • The paths for the hll source files provided by are loaded into TRACE32.

    • An internal symbol data base in generated out of the loaded information.

    有用命令:

    sYmbol.List.SECtion List the section information provided by <file> loaded by “data.load”

    sYmbol.List.SOURCE to display the path information for the hll source files that was loaded from <file>

    sYmbol.spath.list to display the symbol source path list.

    sYmbol.spath.SetDir  设置源文件静态搜索路径

    sYmbol.spath.SetDynamicDir  设置源文件动态搜索路径。如果某个路径命中源文件,则下次搜索时,该命中路径成为第一个被搜索路径。

    sYmbol.spath.SetRecurseDir   设置递归搜索路径,所有其子目录都将被用于源文件搜索

    data.load.elf *oot_t.elf /nocode /strippath 文件名从给定的ELF文件路径中提取,即移除文件的相对依赖路径

    y.list map 按地址显示符号表

    data.dump

    a:0x22300000   读取物理地址对应数据

     参考:

    http://www2.lauterbach.com/pdf/training_hll.pdf

  • 相关阅读:
    Oracle中快速查找锁与锁等待
    Oracle查看、修改连接数
    内置数据类型
    代码片段一
    设计模式学习四:依赖倒置原则
    队列
    设计模式学习六:代理模式
    linux 自学系列:一直kill掉多个进程
    设计模式学习五:装饰器模式
    通过__metaclass__为类动态增加方法实例
  • 原文地址:https://www.cnblogs.com/DF11G/p/10772939.html
Copyright © 2011-2022 走看看