Skip to content

Update tizen_gdbserver_run script for tizen 10#72364

Open
antonijakubiak-samsung wants to merge 5 commits into
project-chip:masterfrom
antonijakubiak-samsung:issue4-tizen_gdbserver_script
Open

Update tizen_gdbserver_run script for tizen 10#72364
antonijakubiak-samsung wants to merge 5 commits into
project-chip:masterfrom
antonijakubiak-samsung:issue4-tizen_gdbserver_script

Conversation

@antonijakubiak-samsung
Copy link
Copy Markdown
Contributor

Summary

Fix Tizen remote debugging helper script (tizen_gdbserver_run.sh)

  • Replaced undocumented/internal platform hooks (__DLP_DEBUG_ARG__ and __AUL_SDK__) with the official app_launcher --debug --start API to ensure compatibility with Tizen 10.0 images.
  • Added automated PID extraction from the launcher output to explicitly attach gdbserver to the suspended process.

Testing

Run application in debug mode:

./scripts/helpers/tizen_gdbserver_run.sh --target 192.168.0.118:26101 --gdbserver-port 1234 --app-name "org.tizen.matter.example.lighting" -- wifi true discriminator 1234 passcode 11223344

Run debugger:

cd /workspace/connectedhomeip/out/tizen-arm64-light-no-thread-no-ble
$TIZEN_SDK_ROOT/tools/aarch64-linux-gnu-gdb-15.1/bin/aarch64-linux-gnu-gdb chip-lighting-app

Setup debugger:

set sysroot /home/ubuntu/.tizen-extension-platform/server/sdktools/data/platforms/tizen-10.0/tizen/rootstraps/tizen-10.0-device64.core
set solib-absolute-prefix /home/ubuntu/.tizen-extension-platform/server/sdktools/data/platforms/tizen-10.0/tizen/rootstraps/tizen-10.0-device64.core
target remote localhost:1234
break LightingManager::InitiateAction
continue

Trigger breakpoint:

 ./out/linux-x64-chip-tool/chip-tool onoff toggle 1 1

Results in GDB:

Thread 8 "chip-lighting-a" hit Breakpoint 1, LightingManager::InitiateAction (this=0xaaaac9e52d30 <LightingManager::sLight>, aAction=LightingManager::ON_ACTION)
    at ../../examples/lighting-app/tizen/third_party/connectedhomeip/examples/lighting-app/lighting-common/src/LightingManager.cpp:46
46          bool action_initiated = false;

Readability checklist

The checklist below will help the reviewer finish PR review in time and keep the
code readable:

  • PR title is
    descriptive
  • Apply the
    “When in Rome…”
    rule (coding style)
  • PR size is short
  • Try to avoid "squashing" and "force-update" in commit history
  • CI time didn't increase

See:
Pull Request Guidelines

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors the Tizen gdbserver runner script to launch applications in native suspension debug mode and manually attach gdbserver to the process PID. Feedback highlights two main improvements: replacing the non-portable grep -oP with a more portable sed command to extract the PID on macOS hosts, and conditionally appending $APP_ARGS to avoid trailing double-dashes when no arguments are provided.

Comment thread scripts/helpers/tizen_gdbserver_run.sh Outdated
Comment thread scripts/helpers/tizen_gdbserver_run.sh Outdated
antonijakubiak-samsung and others added 2 commits June 3, 2026 13:33
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@antonijakubiak-samsung antonijakubiak-samsung marked this pull request as ready for review June 3, 2026 11:48
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 3, 2026

PR #72364: Size comparison from f1767a8 to a139307

Full report (35 builds for bl602, bl616, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, nrfconnect, psoc6, qpg, realtek, stm32, telink)
platform target config section f1767a8 a139307 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1094324 1094324 0 0.0
RAM 144882 144882 0 0.0
bl616 lighting-app bl616+thread FLASH 1105636 1105636 0 0.0
RAM 104280 104280 0 0.0
bl616+wifi+shell FLASH 1593424 1593424 0 0.0
RAM 98176 98176 0 0.0
bl702 lighting-app bl702+eth FLASH 1057326 1057326 0 0.0
RAM 108509 108509 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 896162 896162 0 0.0
RAM 105884 105884 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 776976 776976 0 0.0
RAM 103388 103388 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 789744 789744 0 0.0
RAM 108676 108676 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 738868 738868 0 0.0
RAM 97596 97596 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 719032 719032 0 0.0
RAM 97636 97636 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 568818 568818 0 0.0
RAM 205056 205056 0 0.0
lock CC3235SF_LAUNCHXL FLASH 596298 596298 0 0.0
RAM 205256 205256 0 0.0
efr32 lock-app BRD4187C FLASH 994188 994188 0 0.0
RAM 131288 131288 0 0.0
BRD4338a FLASH 798741 798741 0 0.0
RAM 243424 243424 0 0.0
window-app BRD4187C FLASH 1100608 1100608 0 0.0
RAM 130360 130360 0 0.0
esp32 all-clusters-app c3devkit DRAM 99716 99716 0 0.0
FLASH 1621642 1621642 0 0.0
IRAM 94776 94776 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 834276 834276 0 0.0
RAM 157540 157540 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1733676 1733676 0 0.0
RAM 215260 215260 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1622756 1622756 0 0.0
RAM 211548 211548 0 0.0
light cy8ckit_062s2_43012 FLASH 1469988 1469988 0 0.0
RAM 197420 197420 0 0.0
lock cy8ckit_062s2_43012 FLASH 1503428 1503428 0 0.0
RAM 225252 225252 0 0.0
qpg lighting-app qpg6200+debug FLASH 844200 844200 0 0.0
RAM 127948 127948 0 0.0
lock-app qpg6200+debug FLASH 782276 782276 0 0.0
RAM 118856 118856 0 0.0
realtek light-switch-app rtl8777g FLASH 688760 688760 0 0.0
RAM 101764 101764 0 0.0
lighting-app rtl8777g FLASH 729712 729712 0 0.0
RAM 102044 102044 0 0.0
stm32 light STM32WB5MM-DK FLASH 478416 478416 0 0.0
RAM 141476 141476 0 0.0
telink all-devices-app tl7218x FLASH 813116 813116 0 0.0
RAM 97196 97196 0 0.0
tlsr9118bdk40d FLASH 606574 606574 0 0.0
RAM 120152 120152 0 0.0
bridge-app tl7218x FLASH 731480 731480 0 0.0
RAM 95864 95864 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 851824 851824 0 0.0
RAM 44332 44332 0 0.0
tl7218x FLASH 843152 843152 0 0.0
RAM 99656 99656 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 731974 731974 0 0.0
RAM 55980 55980 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 795200 795200 0 0.0
RAM 75164 75164 0 0.0
light-switch-app-ota-factory-data tl3218x_retention FLASH 731904 731904 0 0.0
RAM 33468 33468 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 614610 614610 0 0.0
RAM 118496 118496 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 841268 841272 4 0.0
RAM 97364 97364 0 0.0

@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 55.61%. Comparing base (9958a21) to head (a139307).
⚠️ Report is 16 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #72364      +/-   ##
==========================================
+ Coverage   55.55%   55.61%   +0.05%     
==========================================
  Files        1630     1630              
  Lines      111147   111146       -1     
  Branches    13410    13397      -13     
==========================================
+ Hits        61752    61812      +60     
+ Misses      49395    49334      -61     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants