×

Loading...

Topic

This topic has been archived. It cannot be replied.
  • 工作学习 / IT技术讨论 / 急问:那位朋友有使用 WorkShop debug core file的经验吗?我遇到一个问题,能帮我看看吗?.请进...
    我运行WorkShop的步骤如下:
    1. 通过Exceed打开一个XTem.
    2.set DISPLAY:0.0 to my PC.
    3.run command: workshop &
    4.WorkShop 出现在我的终端上.
    5.Click "Debug" dropdown menu, then select "Load core file..."
    6.put in Program Name and Core File Name, then click "OK"
    7.Finally a WorkShop Error is shown up, as follow:
    Dbx has exited unexpectedly. Please examine the following file for error messages: /tmp/dbx-cmd-window.26131

    =========================
    /tmp/dbx-cmd-window.26131
    =========================
    (dbx) debug /life/builds/all/life/exe/be_serv /export/home/axc/core
    Reading symbolic information for be_serv
    core file header read successfully
    Reading symbolic informaiton for rtld /usr/lib/ld.so.1
    panic: Proc::get_rtld_stuff(): could not initialize rtld_db

    请问,是什么原因呢?怎么解决?
    • Anybody know it? Thanks in advance...
    • 1.你要运行的主程序必须和产生core file那个时刻的程序版本一样.2.必须用-g来编译和链接程序.3最好在.dbxrc里面用pathmap注明源程序,头文件,".o"和库文件的目录.
      实际上debug core file和debug程序步骤差不多,只是它要求当前的程序和产生core file时的程序不能有地址变动(也就是版本要一致),否则无法确定内存地址.
      • 非常感谢! 非常有用!