Parcourir la source

修复pdb对所属模块的识别

xie-jc il y a 2 ans
Parent
commit
97174b88f7

+ 1 - 1
port/linux/.vscode/launch.json

@@ -12,7 +12,7 @@
             // "program": "${workspaceFolder}/build/boot/demo06-pikamain/pikascript_demo06-pikamain",
             "args": [
                 // "--gtest_filter=vm.keyword_2"
-                // "--gtest_filter=vm.exit_vm"
+                "--gtest_filter=pikaui.page"
             ],
             "stopAtEntry": false,
             "cwd": "${workspaceFolder}",

+ 0 - 2
port/linux/test/python/PikaUI/test_page.py

@@ -1,7 +1,5 @@
 import PikaUI as ui
 from PikaStdLib import MemChecker as mem
-
-
 class MainContainer(ui.Container):
     def onclick_next(self, event):
         print('Page1: onclick_next')

+ 5 - 1
src/PikaObj.c

@@ -2625,7 +2625,11 @@ int obj_runModule(PikaObj* self, char* module_name) {
     if (NULL == bytecode) {
         return 1;
     }
-    pikaVM_runByteCode(self, bytecode);
+
+    PikaVMThread vm_thread = {.try_state = TRY_STATE_NONE,
+                              .try_result = TRY_RESULT_NONE};
+    _do_pikaVM_runByteCode(self, self, self, (uint8_t*)bytecode, module_name,
+                           &vm_thread, pika_true);
     return 0;
 }
 

+ 1 - 1
src/PikaVersion.h

@@ -2,4 +2,4 @@
 #define PIKA_VERSION_MINOR 12
 #define PIKA_VERSION_MICRO 6
 
-#define PIKA_EDIT_TIME "2023/09/28 23:08:12"
+#define PIKA_EDIT_TIME "2023/09/28 23:16:30"