Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/c/59.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ 如何在x64 Windows下跟踪调用堆栈?_C++_C_Debugging_Assembly_64 Bit - Fatal编程技术网

C++ 如何在x64 Windows下跟踪调用堆栈?

C++ 如何在x64 Windows下跟踪调用堆栈?,c++,c,debugging,assembly,64-bit,C++,C,Debugging,Assembly,64 Bit,在x64窗口下,返回地址不存储在rbp中;那么,如何跟踪调用堆栈呢 另一个相关问题: 由于前四个参数是通过rcx、rdx、r8和r9传递的,我应该如何通过堆栈跟踪检索它们?(特别是通过优化编译。)您可以使用Windows函数CaptureStackBackTrace。有关更多信息和代码参考,请参阅。哪个操作系统?x64调用约定在Windows和其他操作系统之间有所不同。@Michael,x64 Windows。特别是优化编译。可能会引起兴趣。

在x64窗口下,返回地址不存储在
rbp
中;那么,如何跟踪调用堆栈呢

另一个相关问题:


由于前四个参数是通过
rcx
rdx
r8
r9
传递的,我应该如何通过堆栈跟踪检索它们?(特别是通过优化编译。

您可以使用Windows函数
CaptureStackBackTrace
。有关更多信息和代码参考,请参阅。

哪个操作系统?x64调用约定在Windows和其他操作系统之间有所不同。@Michael,x64 Windows。特别是优化编译。可能会引起兴趣。