comparison host/tools/ecostest/common/eCosTestPlatform.cpp @ 101:c37d3a9e1b28 ecos-sw-2000-06-16

Merge from eCos master repository on 2000-06-16-07:47:03-BST
author jlarmour
date Fri, 16 Jun 2000 16:43:59 +0000
parents 6736c52df507
children 36f23a513952
comparison
equal deleted inserted replaced
100:991657282121 101:c37d3a9e1b28
103 const CeCosTestPlatform &ti=arPlatforms[i]; 103 const CeCosTestPlatform &ti=arPlatforms[i];
104 rc&=(ERROR_SUCCESS==RegCreateKeyEx(hKey,ti.Name(), 0, NULL, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &hKey2, &dwDisp)); 104 rc&=(ERROR_SUCCESS==RegCreateKeyEx(hKey,ti.Name(), 0, NULL, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &hKey2, &dwDisp));
105 if(rc){ 105 if(rc){
106 LPCTSTR pszPrefix=ti.Prefix(); 106 LPCTSTR pszPrefix=ti.Prefix();
107 LPCTSTR pszGdb =ti.GdbCmds(); 107 LPCTSTR pszGdb =ti.GdbCmds();
108 LPCTSTR pszInferior=ti.Inferior();
109 LPCTSTR pszPrompt=ti.Prompt();
110 DWORD dwServerSideGdb=ti.ServerSideGdb()?1l:0l;
108 rc&=(ERROR_SUCCESS==RegSetValueEx(hKey2,_T("Prefix"),0,REG_SZ, (CONST BYTE *)pszPrefix,(1+_tcslen(pszPrefix))*sizeof TCHAR)) && 111 rc&=(ERROR_SUCCESS==RegSetValueEx(hKey2,_T("Prefix"),0,REG_SZ, (CONST BYTE *)pszPrefix,(1+_tcslen(pszPrefix))*sizeof TCHAR)) &&
109 (ERROR_SUCCESS==RegSetValueEx(hKey2,_T("GdbCmd"),0,REG_SZ, (CONST BYTE *)pszGdb,(1+_tcslen(pszGdb))*sizeof TCHAR)); 112 (ERROR_SUCCESS==RegSetValueEx(hKey2,_T("Commands"),0,REG_SZ, (CONST BYTE *)pszGdb,(1+_tcslen(pszGdb))*sizeof TCHAR)) &&
113 (ERROR_SUCCESS==RegSetValueEx(hKey2,_T("Inferior"),0,REG_SZ, (CONST BYTE *)pszInferior,(1+_tcslen(pszInferior))*sizeof TCHAR)) &&
114 (ERROR_SUCCESS==RegSetValueEx(hKey2,_T("Prompt"),0,REG_SZ, (CONST BYTE *)pszPrompt,(1+_tcslen(pszPrompt))*sizeof TCHAR)) &&
115 (ERROR_SUCCESS==RegSetValueEx(hKey2,_T("ServerSideGdb"),0,REG_DWORD, (CONST BYTE *)&dwServerSideGdb,sizeof DWORD));
110 } 116 }
111 RegCloseKey(hKey2); 117 RegCloseKey(hKey2);
112 } 118 }
113 RegCloseKey(hKey); 119 RegCloseKey(hKey);
114 } 120 }