0
系統信息:Windows 7中,2010 MSVS口譯調用堆棧輸出
下面是一個簡單的程序,在我測試在調試Call Stack
選項是如何工作的
#include<stdio.h>
#include "stdafx.h"
int main()
{
printf("hello"); //breakpoint
}
當我調試控制打破發點和調用堆棧是:
testapp.exe!main() Line 10 C++
testapp.exe!__tmainCRTStartup() Line 555 + 0x19 bytes C
testapp.exe!mainCRTStartup() Line 371 C
kernel32.dll!75e7ed6c()
[Frames below may be incorrect and/or missing, no symbols loaded for kernel32.dll]
ntdll.dll!77a537eb()
ntdll.dll!77a537be()
我該如何解讀這樣的結果?廣告什麼是__tmainCRTStartup()
?
更新
剛纔檢查,相同的輸出在調用棧,即使我有.c文件,而不是.cpp文件。
的[主mainCRTStartup之間的區別是什麼?(HTTP可能重複:// stackoverflow.com/questions/22934206/what-is-the-difference-between-main-and-maincrtstartup) – demoncodemonkey 2014-09-29 11:02:14
@demoncodemonkey感謝您的鏈接。但是,我如何解釋Call Stack的輸出? – gpuguy 2014-09-29 11:04:55