ruby / debug

Debugging functionality for Ruby
BSD 2-Clause "Simplified" License
1.14k stars 127 forks source link

Use rb_iseqw_to_iseq to get iseq pointer #1093

Closed peterzhu2118 closed 8 months ago

peterzhu2118 commented 8 months ago

Using DATA_PTR is internal implementation details so we should not use it.

It should fix this issue: https://github.com/ruby/ruby/pull/10336#issuecomment-2021861692

launchable-app[bot] commented 8 months ago

Launchable Report

:x: Test session #2763453 failedos:ubuntu-latest test_task:test_protocoldetails on CI
:bell: no issues :heavy_multiplication_x:1 test failed :heavy_check_mark:63 tests passed

:x: Test session #2763454 failedos:ubuntu-latest test_task:test_protocoldetails on CI
:bell: no issues :heavy_multiplication_x:1 test failed :heavy_check_mark:63 tests passed

:x: Test session #2763485 failedos:ubuntu-latest test_task:test_protocoldetails on CI
:bell: no issues :heavy_multiplication_x:1 test failed :heavy_check_mark:63 tests passed

:x: Test session #2763490 failedos:ubuntu-latest test_task:test_protocoldetails on CI
:bell: no issues :heavy_multiplication_x:1 test failed :heavy_check_mark:63 tests passed

Passed test sessions :white_check_mark: Test session [#2763443](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763443) passed [![os:ubuntu-latest](https://img.shields.io/badge/os-ubuntu--latest-blue.svg)](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763443) [![test_task:test_test](https://img.shields.io/badge/test__task-test__test-blue.svg)](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763443) [details on CI](https://github.com/ruby/debug/actions/runs/8454492751) :white_check_mark: Test session [#2763444](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763444) passed [![os:ubuntu-latest](https://img.shields.io/badge/os-ubuntu--latest-blue.svg)](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763444) [![test_task:test_test](https://img.shields.io/badge/test__task-test__test-blue.svg)](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763444) [details on CI](https://github.com/ruby/debug/actions/runs/8454492751) :white_check_mark: Test session [#2763445](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763445) passed [![os:ubuntu-latest](https://img.shields.io/badge/os-ubuntu--latest-blue.svg)](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763445) [![test_task:test_test](https://img.shields.io/badge/test__task-test__test-blue.svg)](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763445) [details on CI](https://github.com/ruby/debug/actions/runs/8454492751) :white_check_mark: Test session [#2763446](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763446) passed [![os:ubuntu-latest](https://img.shields.io/badge/os-ubuntu--latest-blue.svg)](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763446) [![test_task:test_test](https://img.shields.io/badge/test__task-test__test-blue.svg)](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763446) [details on CI](https://github.com/ruby/debug/actions/runs/8454492751) :white_check_mark: Test session [#2763447](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763447) passed [![os:ubuntu-latest](https://img.shields.io/badge/os-ubuntu--latest-blue.svg)](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763447) [![test_task:test_test](https://img.shields.io/badge/test__task-test__test-blue.svg)](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763447) [details on CI](https://github.com/ruby/debug/actions/runs/8454492751) :white_check_mark: Test session [#2763448](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763448) passed [![os:ubuntu-latest](https://img.shields.io/badge/os-ubuntu--latest-blue.svg)](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763448) [![test_task:test_test](https://img.shields.io/badge/test__task-test__test-blue.svg)](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763448) [details on CI](https://github.com/ruby/debug/actions/runs/8454492751) :white_check_mark: Test session [#2763449](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763449) passed [![os:ubuntu-latest](https://img.shields.io/badge/os-ubuntu--latest-blue.svg)](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763449) [![test_task:test_protocol](https://img.shields.io/badge/test__task-test__protocol-blue.svg)](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763449) [details on CI](https://github.com/ruby/debug/actions/runs/8454492753) :white_check_mark: Test session [#2763450](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763450) passed [![os:ubuntu-latest](https://img.shields.io/badge/os-ubuntu--latest-blue.svg)](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763450) [![test_task:test_protocol](https://img.shields.io/badge/test__task-test__protocol-blue.svg)](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763450) [details on CI](https://github.com/ruby/debug/actions/runs/8454492753) :white_check_mark: Test session [#2763451](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763451) passed [![os:ubuntu-latest](https://img.shields.io/badge/os-ubuntu--latest-blue.svg)](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763451) [![test_task:test_protocol](https://img.shields.io/badge/test__task-test__protocol-blue.svg)](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763451) [details on CI](https://github.com/ruby/debug/actions/runs/8454492753) :white_check_mark: Test session [#2763452](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763452) passed [![os:ubuntu-latest](https://img.shields.io/badge/os-ubuntu--latest-blue.svg)](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763452) [![test_task:test_protocol](https://img.shields.io/badge/test__task-test__protocol-blue.svg)](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763452) [details on CI](https://github.com/ruby/debug/actions/runs/8454492753) :white_check_mark: Test session [#2763455](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763455) passed [![os:ubuntu-latest](https://img.shields.io/badge/os-ubuntu--latest-blue.svg)](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763455) [![test_task:test_protocol](https://img.shields.io/badge/test__task-test__protocol-blue.svg)](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763455) [details on CI](https://github.com/ruby/debug/actions/runs/8454492753) :white_check_mark: Test session [#2763460](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763460) passed [![os:ubuntu-latest](https://img.shields.io/badge/os-ubuntu--latest-blue.svg)](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763460) [![test_task:test_console](https://img.shields.io/badge/test__task-test__console-blue.svg)](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763460) [details on CI](https://github.com/ruby/debug/actions/runs/8454492752) :white_check_mark: Test session [#2763461](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763461) passed [![os:ubuntu-latest](https://img.shields.io/badge/os-ubuntu--latest-blue.svg)](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763461) [![test_task:test_console](https://img.shields.io/badge/test__task-test__console-blue.svg)](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763461) [details on CI](https://github.com/ruby/debug/actions/runs/8454492752) :white_check_mark: Test session [#2763462](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763462) passed [![os:ubuntu-latest](https://img.shields.io/badge/os-ubuntu--latest-blue.svg)](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763462) [![test_task:test_console](https://img.shields.io/badge/test__task-test__console-blue.svg)](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763462) [details on CI](https://github.com/ruby/debug/actions/runs/8454492752) :white_check_mark: Test session [#2763463](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763463) passed [![os:ubuntu-latest](https://img.shields.io/badge/os-ubuntu--latest-blue.svg)](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763463) [![test_task:test_console](https://img.shields.io/badge/test__task-test__console-blue.svg)](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763463) [details on CI](https://github.com/ruby/debug/actions/runs/8454492752) :white_check_mark: Test session [#2763464](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763464) passed [![os:macos-latest](https://img.shields.io/badge/os-macos--latest-blue.svg)](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763464) [![test_task:test_console](https://img.shields.io/badge/test__task-test__console-blue.svg)](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763464) [details on CI](https://github.com/ruby/debug/actions/runs/8454492740) :white_check_mark: Test session [#2763465](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763465) passed [![os:ubuntu-latest](https://img.shields.io/badge/os-ubuntu--latest-blue.svg)](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763465) [![test_task:test_console](https://img.shields.io/badge/test__task-test__console-blue.svg)](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763465) [details on CI](https://github.com/ruby/debug/actions/runs/8454492752) :white_check_mark: Test session [#2763466](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763466) passed [![os:macos-latest](https://img.shields.io/badge/os-macos--latest-blue.svg)](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763466) [![test_task:test_console](https://img.shields.io/badge/test__task-test__console-blue.svg)](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763466) [details on CI](https://github.com/ruby/debug/actions/runs/8454492740) :white_check_mark: Test session [#2763467](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763467) passed [![os:macos-latest](https://img.shields.io/badge/os-macos--latest-blue.svg)](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763467) [![test_task:test_console](https://img.shields.io/badge/test__task-test__console-blue.svg)](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763467) [details on CI](https://github.com/ruby/debug/actions/runs/8454492740) :white_check_mark: Test session [#2763468](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763468) passed [![os:ubuntu-latest](https://img.shields.io/badge/os-ubuntu--latest-blue.svg)](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763468) [![test_task:test_console](https://img.shields.io/badge/test__task-test__console-blue.svg)](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763468) [details on CI](https://github.com/ruby/debug/actions/runs/8454492752) :white_check_mark: Test session [#2763548](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763548) passed [![os:ubuntu-latest](https://img.shields.io/badge/os-ubuntu--latest-blue.svg)](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763548) [![test_task:test_console](https://img.shields.io/badge/test__task-test__console-blue.svg)](https://app.launchableinc.com/organizations/ruby/workspaces/debug/data/test-sessions/2763548) [details on CI](https://github.com/ruby/debug/actions/runs/8454492752)

Build: refs_pull_1093_merge_2d48ffe69ebebf712fe934309fc014e8b37d8959

ko1 commented 8 months ago

Thanks!