char *pString = new char[20];
::strcpy_s(pString, 20*sizeof(char), "Test string");
CString *pStr = new CString("Hello World");
std::wstring stdString = L"STD String";
CDialogEx::OnOK(); <= Break point
0:000> dv /V /i /t
prv local 001af284 @ebp-0x3c class ATL::CStringT > > * pStr = 0x0097b830
prv local 001af290 @ebp-0x30 char * pString = 0x0097b7e0 "Test string"
prv local 001af25c @ebp-0x64 class std::basic_string,std::allocator > stdString = class std::basic_string,std::allocator >
0:000> dt -a11 0x0097b7e0 char
[0] @ 0097b7e0
---------------------------------------------
84 'T'
[1] @ 0097b7e1
---------------------------------------------
101 'e'
[2] @ 0097b7e2
---------------------------------------------
115 's'
[3] @ 0097b7e3
---------------------------------------------
116 't'
[4] @ 0097b7e4
---------------------------------------------
32 ' '
[5] @ 0097b7e5
---------------------------------------------
115 's'
[6] @ 0097b7e6
---------------------------------------------
116 't'
[7] @ 0097b7e7
---------------------------------------------
114 'r'
[8] @ 0097b7e8
---------------------------------------------
105 'i'
[9] @ 0097b7e9
---------------------------------------------
110 'n'
[10] @ 0097b7ea
---------------------------------------------
103 'g'
0:000> da 0x0097b7e0
0097b7e0 "Test string"
0:000> !stl -n (std::basic_string,std::allocator >) 001af25c
[du 0x97b920]
0097b920 "STD String"
0:000> dpu 001af25c L2
001af25c 0097b8d8 ".."
001af260 0097b920 "STD String"
0:000> !stl stdString
[du 0x97b920]
0097b920 "STD String"
0:000> !SDbgExt.stlwstring 001af25c
wstring size=10 reserved=15 buf=0097b920 "STD String"
0:000> dt 0x0097b830 CString
mfc_test_del!CString
+0x000 m_pszData : 0x0097b880 "Hello World"
::strcpy_s(pString, 20*sizeof(char), "Test string");
CString *pStr = new CString("Hello World");
std::wstring stdString = L"STD String";
CDialogEx::OnOK(); <= Break point
0:000> dv /V /i /t
prv local 001af284 @ebp-0x3c class ATL::CStringT
prv local 001af290 @ebp-0x30 char * pString = 0x0097b7e0 "Test string"
prv local 001af25c @ebp-0x64 class std::basic_string
0:000> dt -a11 0x0097b7e0 char
[0] @ 0097b7e0
---------------------------------------------
84 'T'
[1] @ 0097b7e1
---------------------------------------------
101 'e'
[2] @ 0097b7e2
---------------------------------------------
115 's'
[3] @ 0097b7e3
---------------------------------------------
116 't'
[4] @ 0097b7e4
---------------------------------------------
32 ' '
[5] @ 0097b7e5
---------------------------------------------
115 's'
[6] @ 0097b7e6
---------------------------------------------
116 't'
[7] @ 0097b7e7
---------------------------------------------
114 'r'
[8] @ 0097b7e8
---------------------------------------------
105 'i'
[9] @ 0097b7e9
---------------------------------------------
110 'n'
[10] @ 0097b7ea
---------------------------------------------
103 'g'
0:000> da 0x0097b7e0
0097b7e0 "Test string"
0:000> !stl -n (std::basic_string
[du 0x97b920]
0097b920 "STD String"
0:000> dpu 001af25c L2
001af25c 0097b8d8 ".."
001af260 0097b920 "STD String"
0:000> !stl stdString
[du 0x97b920]
0097b920 "STD String"
0:000> !SDbgExt.stlwstring 001af25c
wstring size=10 reserved=15 buf=0097b920 "STD String"
0:000> dt 0x0097b830 CString
mfc_test_del!CString
+0x000 m_pszData : 0x0097b880 "Hello World"
No comments:
Post a Comment