JavaScript is required to for searching.
跳过导航链接
退出打印视图
Oracle Solaris Studio 12.3:使用 dbx 调试程序     Oracle Solaris Studio 12.3 Information Library (简体中文)
search filter icon
search icon

文档信息

前言

1.  dbx 入门

2.  启动 dbx

3.  定制 dbx

4.  查看和导航到代码

5.  控制程序执行

6.  设置断点和跟踪

7.  使用调用堆栈

8.  求值和显示数据

9.  使用运行时检查

10.  修复并继续

11.  调试多线程应用程序

12.  调试子进程

连接到子进程

跟随 exec 函数

跟随 fork 函数

与事件交互

13.  调试 OpenMP 程序

14.  处理信号

15.  使用 dbx 调试 C++

16.  使用 dbx 调试 Fortran

17.  使用 dbx 调试 Java 应用程序

18.  在机器指令级调试

19.  将 dbx 与 Korn Shell 配合使用

20.  调试共享库

A.  修改程序状态

B.  事件管理

C.  宏

D.  命令参考

索引

跟随 fork 函数

如果子进程调用 vfork(2)fork1(2)fork(2) 函数,则进程 id 会发生更改,但进程映像保持不变。根据 dbx 环境变量 follow_fork_mode 的具体设置,dbx 会执行以下操作之一。

Parent

在传统行为中,dbx 将忽略派生而跟随父进程。

Child

dbx 自动切换到使用新进程 ID 的派生子进程。到原始父进程的所有连接以及对该进程的所有认知均丢失。

Both

只有在通过 Oracle Solaris Studio IDE 或 dbxtool 使用 dbx 时,此模式才有效。

Ask

只要 dbx 检测到派生,便会提示您选择 parentchildbothstop to investigate。如果选择 stop,便可以检查程序的状态,然后键入 cont 继续执行;这时会再次提示选择继续的方式。只有在 Oracle Solaris Studio IDE 和 dbxtool 中才支持 both