<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/misc/lldb_rb/rb_heap_structs.py, branch v4.0.3</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>Always look for the top-level RBasic in LLDB scripts</title>
<updated>2025-04-15T02:50:48+00:00</updated>
<author>
<name>Étienne Barrié</name>
<email>etienne.barrie@gmail.com</email>
</author>
<published>2025-04-10T13:26:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=e1f544c1cf34787f139a973b934c9f535b201ea3'/>
<id>e1f544c1cf34787f139a973b934c9f535b201ea3</id>
<content type='text'>
`rp` and other commands were broken for me because they always showed
the object as a T_NONE.

The reason was that instead of returning the type `struct RBasic`,
FindFirstType("struct RBasic") was returning
`yjit::cruby::autogened::RBasic`.

Explicitly asking for the top-level RBasic by prefixing it with `::` is
enough to fix those commands.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`rp` and other commands were broken for me because they always showed
the object as a T_NONE.

The reason was that instead of returning the type `struct RBasic`,
FindFirstType("struct RBasic") was returning
`yjit::cruby::autogened::RBasic`.

Explicitly asking for the top-level RBasic by prefixing it with `::` is
enough to fix those commands.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix lldb debug scripts (#13048)</title>
<updated>2025-04-08T16:52:49+00:00</updated>
<author>
<name>Eileen</name>
<email>eileencodes@users.noreply.github.com</email>
</author>
<published>2025-04-08T16:52:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=5aa05f179c028981950cb5f40112ce058c5a40cd'/>
<id>5aa05f179c028981950cb5f40112ce058c5a40cd</id>
<content type='text'>
In ruby/ruby#13008 `RVALUE` was removed without replacement. This means
the lldb scripts that relied on `RVALUE` stopped working.

I updated the ones that were using it just for the bytesize to use
`slot_size` and then round to the nearest power of 40. We can't use
`slot_size` directly because in debug mode it's `48` but `RVALUE` is
`40` bytes.

For the `as_type` method, I updated it to check the type. It's only used
for `bignum` and `array` so that's a simple change.

Lastly, for the `dump_page` method I replaced it with `struct free_slot`
since that's looking at the freelist.

`struct RVALUE` has been removed from all the scripts and I verified
that `rp` is fixed. I'm not confident the `dump_page` method is fixed,
the freelist looks off, but for now this gets us closer.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In ruby/ruby#13008 `RVALUE` was removed without replacement. This means
the lldb scripts that relied on `RVALUE` stopped working.

I updated the ones that were using it just for the bytesize to use
`slot_size` and then round to the nearest power of 40. We can't use
`slot_size` directly because in debug mode it's `48` but `RVALUE` is
`40` bytes.

For the `as_type` method, I updated it to check the type. It's only used
for `bignum` and `array` so that's a simple change.

Lastly, for the `dump_page` method I replaced it with `struct free_slot`
since that's looking at the freelist.

`struct RVALUE` has been removed from all the scripts and I verified
that `rp` is fixed. I'm not confident the `dump_page` method is fixed,
the freelist looks off, but for now this gets us closer.</pre>
</div>
</content>
</entry>
<entry>
<title>Fix RBignum print [ci skip]</title>
<updated>2023-09-29T17:09:29+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2023-09-29T17:07:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=ce717be1881e5751ec07b6f65901a750e7f3069a'/>
<id>ce717be1881e5751ec07b6f65901a750e7f3069a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix RArray print [ci skip]</title>
<updated>2023-09-29T17:09:29+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2023-09-29T17:06:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=9fa7ec9332a7d39f1c7d8056bbcf62cb6f9340df'/>
<id>9fa7ec9332a7d39f1c7d8056bbcf62cb6f9340df</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Delete empty lines at EOF [ci skip]</title>
<updated>2023-09-29T17:09:29+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2023-09-29T17:04:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=e8251602574d6736e48eafc239718a6a9d91d261'/>
<id>e8251602574d6736e48eafc239718a6a9d91d261</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>* remove trailing spaces. [ci skip]</title>
<updated>2023-03-17T20:04:58+00:00</updated>
<author>
<name>git</name>
<email>svn-admin@ruby-lang.org</email>
</author>
<published>2023-03-17T20:04:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=2d97f87407f89986a2c7619d2a7a75ccd68386ef'/>
<id>2d97f87407f89986a2c7619d2a7a75ccd68386ef</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[ci skip] Move rp helper to new LLDB format</title>
<updated>2023-03-17T20:04:43+00:00</updated>
<author>
<name>Matt Valentine-House</name>
<email>matt@eightbitraptor.com</email>
</author>
<published>2023-03-16T09:54:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=c7862c68ebc44e6146f9b10f329eccdb9e5ef5fc'/>
<id>c7862c68ebc44e6146f9b10f329eccdb9e5ef5fc</id>
<content type='text'>
For now, the old function still exists as `old_rp`, in order to debug
issues with this command.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For now, the old function still exists as `old_rp`, in order to debug
issues with this command.
</pre>
</div>
</content>
</entry>
</feed>
