【问题标题】:dbx: warning: stepping up to a function with srcline infodbx:警告:使用 srcline 信息升级到函数
【发布时间】:2015-09-03 17:59:46
【问题描述】:

我在使用大量遗留 C 代码跟踪 dbx 中的子进程时遇到了一些问题。我在下面展示正在调查的代码部分:

#include<stdio.h>
#include<stdlib.h>
#include<unistd.h>
int main()
{
    if(fork()) exit(0);
    return 0;
}

当我在 Solaris 10 中运行 dbx 时,我得到以下输出:

Running: a.out
(process id 28193)
stopped in main at line 5 in file "a.c"
    5           if(fork()) exit(0);
(dbx) next
dbx: detected a fork(). Do you want to follow parent, child or stop to investigate?
> child
Following child ...
detaching from process 28193
Attached to process 28197
stopped in __fork1 at 0xfeefc6b7
0xfeefc6b7: __fork1+0x0007:     jb       __cerror       [ 0xfee70a40, .-0x8bc77 ]
Current function is main
    5           if(fork()) exit(0);
dbx: warning: stepping up to a function with srcline info

为什么我收到此警告 dbx: warning: stepping up to a function with srcline info

谁能帮我解决这个问题?我被困在这一点上。

【问题讨论】:

    标签: c fork solaris dbx


    【解决方案1】:

    dbx 试图跟踪的函数是 __fork1(),它提供了 libc 给你。 Oracle 不提供使用 -g 构建的 libc,这就是您所提供的 需要为了在调试器中有源代码行信息。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-01-03
      • 2020-06-09
      • 1970-01-01
      • 1970-01-01
      • 2019-03-05
      • 1970-01-01
      • 1970-01-01
      • 2019-04-28
      相关资源
      最近更新 更多