| 923 | } |
| 924 | |
| 925 | BF_EXPORT bool BF_CALLTYPE Debugger_HotLoad(const char* fileNamesStr, int hotIdx) |
| 926 | { |
| 927 | //DbgModule* dwarf = new DbgModule(gDebugger); |
| 928 | //dwarf->ReadPE(fileName); |
| 929 | |
| 930 | Array<String> fileNames; |
| 931 | const char* curPtr = fileNamesStr; |
| 932 | for (int i = 0; true; i++) |
| 933 | { |
| 934 | if ((fileNamesStr[i] == '\0') || (fileNamesStr[i] == '\n')) |
| 935 | { |
| 936 | String curFileName = String(curPtr, fileNamesStr + i); |
| 937 | |
| 938 | if ((curFileName.IndexOf("/vdata.") != -1) || (curFileName.IndexOf("\\vdata.") != -1)) |
| 939 | { |
| 940 | // Do vdata first - so new data and special functions don't have to be deferred resolved |
| 941 | fileNames.Insert(0, curFileName); |
| 942 | } |
| 943 | else |
| 944 | fileNames.Add(curFileName); |
| 945 | curPtr = fileNamesStr + i + 1; |
| 946 | } |
| 947 | |
| 948 | if (fileNamesStr[i] == '\0') |
| 949 | break; |
| 950 | } |
| 951 | |
| 952 | gDebugger->HotLoad(fileNames, hotIdx); |
| 953 | |
| 954 | return true; |
| 955 | } |
| 956 | |
| 957 | BF_EXPORT bool BF_CALLTYPE Debugger_LoadDebugVisualizers(const char* fileName) |
| 958 | { |