如何知道谁在gdb中从核心文件中调用了该函数 [英] How to know who called the function from core file in gdb
问题描述
我有一个从我的应用程序生成的核心文件。
当看到核心文件已生成segafult因为一个循环
bt
在文件leaving.c中delet_value(dest = 12345,del_node = 0xde41dd40)的
$ b文件leaving.c中的delet_value(dest = 12345,del_node = 0xde41dd40)中的$ b
在文件leaving.c中的delet_value(dest = 12345,del_node = 0xde41dd40)中的
....
和这个conitues
这个函数是从我的应用程序中的很多地方调用的。我怎么去代码谁虽然给出了输入或向上命令,因为它是从循环生成的,所以我称之为无法使用它。
任何人都可以帮助我。
Hi,
I have a core file generated from my application.
When am seeing the core file segafult has been generated because of a looping
bt
in Delet_value(dest=12345,del_node=0xde41dd40) at file leaving.c
in Delet_value(dest=12345,del_node=0xde41dd40) at file leaving.c
in Delet_value(dest=12345,del_node=0xde41dd40) at file leaving.c
....
and this conitues
The function is called from many places in my application .How do I go to the code who called this as am unable to go for it though giving enter or up command as it is generated from a loop.
Can anybody please help me on this.
推荐答案
请看我对这个问题的评论。
详情请见:
http://www.chemie.fu-berlin.de/chemnet/use/info/gdb/gdb_7.html [ ^ ],
http://sourceware.org/gdb/onlinedocs/gdb/Stack.html [ ^ ],
http://gcc.gnu.org/onlinedocs/gcc-3.3.6/gnat_ug_unx/Introduction-to- GDB-Commands.html [ ^ ]。
现在,当您知道关键字时,您可以搜索有关该主题的其他合适文档。 br $>
-SA
Please see my comment to the question.
For further detail, please see:
http://www.chemie.fu-berlin.de/chemnet/use/info/gdb/gdb_7.html[^],
http://sourceware.org/gdb/onlinedocs/gdb/Stack.html[^],
http://gcc.gnu.org/onlinedocs/gcc-3.3.6/gnat_ug_unx/Introduction-to-GDB-Commands.html[^].
Now, when you know the keywords, you can search for other suitable documentation on the topic.
—SA
这篇关于如何知道谁在gdb中从核心文件中调用了该函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!