tonychen0924 commented on issue #706: URL: https://github.com/apache/celix/issues/706#issuecomment-1871880693
My test case link: https://github.com/tonychen0924/CelixTest/tree/main/unitDemo "CtrlConsumer.h" can find and set break point successfully , but "plc_main.c" can not ? tony@LAPTOP-4AFLJE2J:~/git_pro/CelixTest/unitDemo/build/deploy/MyContainer$ gdb ./MyContainer GNU gdb (Ubuntu 12.1-0ubuntu1~22.04) 12.1 Copyright (C) 2022 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <https://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from ./MyContainer... (gdb) run Starting program: /home/tony/git_pro/CelixTest/unitDemo/build/deploy/MyContainer/MyContainer [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7ffff69d3640 (LWP 10321)] [New Thread 0x7ffff6141640 (LWP 10322)] -> 注册plc service bundle 启动plc service bundle [New Thread 0x7ffff58d0640 (LWP 10323)] create instance address:0x5555555a8740 create CtrlConsumerBundle bundle, consumer address:0x5555555a8740 StartPLC localPCtrl address:0 WARNING: StartPLC Calc service not available! StopPLC localPCtrl address:0 WARNING: Calc service not available! setCtrlthis address:0x5555555a8740 pCtrl address:0x5555555a7420 [2023-12-29T17:04:30] [ info] [celix_framework] [framework_start:492] Celix framework started StartPLC localPCtrl address:0x5555555a7420 startPLC 1==================== 2==================== 3==================== StopPLC localPCtrl address:0x5555555a7420 stopPLC StartPLC localPCtrl address:0x5555555a7420 startPLC 1==================== 2==================== 3==================== StopPLC localPCtrl address:0x5555555a7420 stopPLC -> lb Bundles: ID State Name Group 0 ACTIVE Celix Framework Celix/Framework 1 ACTIVE Apache Celix CXX Shell Celix/Shell 2 ACTIVE Apache Celix Shell TUI Celix/Shell 3 ACTIVE PlcCtrlBundle 4 ACTIVE RteBundle -> StartPLC localPCtrl address:0x5555555a7420 startPLC 1==================== 2==================== 3==================== StopPLC localPCtrl address:0x5555555a7420 stopPLC -> quitStartPLC localPCtrl address:0x5555555a7420 startPLC 1==================== 2==================== 3==================== StopPLC localPCtrl address:0x5555555a7420 stopPLC -> quit Quitting framework [New Thread 0x7ffff50cf640 (LWP 10330)] -> setCtrlthis address:0x5555555a8740 pCtrl address:0 [Thread 0x7ffff58d0640 (LWP 10323) exited] [Thread 0x7ffff6141640 (LWP 10322) exited] [Thread 0x7ffff50cf640 (LWP 10330) exited] [Thread 0x7ffff69d3640 (LWP 10321) exited] [Inferior 1 (process 10315) exited normally] (gdb) b CtrlConsumer.h:41 Breakpoint 1 at 0x7ffff58dc3c4: file /home/tony/git_pro/CelixTest/unitDemo/rte/include/CtrlConsumer.h, line 41. (gdb) b plc_main.c:8 No source file named plc_main.c. Make breakpoint pending on future shared library load? (y or [n]) y Breakpoint 2 (plc_main.c:8) pending. (gdb) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@celix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org