当前位置:  开发笔记 > 编程语言 > 正文

Solaris GDB:如何暂停执行?

如何解决《SolarisGDB:如何暂停执行?》经验,为你挑选了0个好方法。

我正在使用GDB在Solaris 10 x86上调试封闭的源程序.

我将gdb附加到程序并继续执行,但是当我想稍后暂停执行以检查一些内存时我不能.当我按下CTRL-C时,它只打印^ C而不是暂停程序并将我放到(gdb)提示符下.

bash-3.00# gdb --pid=1521
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-pc-solaris2.10".
Attaching to process 1521
Retry #1:
Retry #2:
Retry #3:
Retry #4:
[New LWP 1]
0xfe3b5a23 in ?? ()
(gdb) c
Continuing.
^C^C^C^C^C^C^C^C

如何返回(gdb)提示符?我做错了什么,或者我怎样才能让它发挥作用.

推荐阅读
小妖694_807
这个屌丝很懒,什么也没留下!
DevBox开发工具箱 | 专业的在线开发工具网站    京公网安备 11010802040832号  |  京ICP备19059560号-6
Copyright © 1998 - 2020 DevBox.CN. All Rights Reserved devBox.cn 开发工具箱 版权所有