<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/.gdbinit, branch v4.0.4</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>.gdbinit: rb_shape_get_shape no longer exists</title>
<updated>2025-08-20T20:28:08+00:00</updated>
<author>
<name>Takashi Kokubun</name>
<email>takashikkbn@gmail.com</email>
</author>
<published>2025-08-20T20:28:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=426cdb2c01108f3ff367b323f2a446a3da4647b9'/>
<id>426cdb2c01108f3ff367b323f2a446a3da4647b9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>gdbinit: fix printing of T_DATA</title>
<updated>2025-06-12T01:11:36+00:00</updated>
<author>
<name>John Hawthorn</name>
<email>john@hawthorn.email</email>
</author>
<published>2025-06-05T19:09:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=f91c80836a3f0c0a7ada00d439ad78fdfccd6b29'/>
<id>f91c80836a3f0c0a7ada00d439ad78fdfccd6b29</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Allow gdb's rp to work on classes offline</title>
<updated>2025-04-10T18:33:46+00:00</updated>
<author>
<name>John Hawthorn</name>
<email>john@hawthorn.email</email>
</author>
<published>2025-03-04T01:03:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=f13e86a70edffe9af9b8bca15a0a9652cf143386'/>
<id>f13e86a70edffe9af9b8bca15a0a9652cf143386</id>
<content type='text'>
It's useful to be able to get information about classes without a
running process, ie. when debugging a coredump.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It's useful to be able to get information about classes without a
running process, ie. when debugging a coredump.
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove RUBY_FL_PROMOTED{0,1} from debugger scripts</title>
<updated>2025-03-28T16:36:24+00:00</updated>
<author>
<name>Étienne Barrié</name>
<email>etienne.barrie@gmail.com</email>
</author>
<published>2025-03-27T15:46:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=332f5d0b73cffb07c3e0002d31cc2c5d1b3fac1c'/>
<id>332f5d0b73cffb07c3e0002d31cc2c5d1b3fac1c</id>
<content type='text'>
These flags were removed in d426343418aab6148706860bd1678ac309dc12c0 and
print_flags is broken because of it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These flags were removed in d426343418aab6148706860bd1678ac309dc12c0 and
print_flags is broken because of it.
</pre>
</div>
</content>
</entry>
<entry>
<title>.gdbinit: Fix T_HASH printing [ci skip]</title>
<updated>2025-03-03T23:54:08+00:00</updated>
<author>
<name>Alan Wu</name>
<email>alanwu@ruby-lang.org</email>
</author>
<published>2025-03-03T23:54:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=40ae7d96500f0ffac66f77d1426d4d5387561183'/>
<id>40ae7d96500f0ffac66f77d1426d4d5387561183</id>
<content type='text'>
Tested and it works with both AR and ST tables, with live process and
core dumps.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Tested and it works with both AR and ST tables, with live process and
core dumps.
</pre>
</div>
</content>
</entry>
<entry>
<title>.gdbinit: Fix reference to undefined rb_thread_t field [ci skip]</title>
<updated>2024-12-06T17:27:03+00:00</updated>
<author>
<name>Alan Wu</name>
<email>alanwu@ruby-lang.org</email>
</author>
<published>2024-12-06T17:27:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=97e93af5411c2f82888728690e0c2940f961c1d3'/>
<id>97e93af5411c2f82888728690e0c2940f961c1d3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>.gdbinit: Update RString printing for new layout [ci skip]</title>
<updated>2024-11-12T03:24:32+00:00</updated>
<author>
<name>Alan Wu</name>
<email>alanwu@ruby-lang.org</email>
</author>
<published>2024-11-12T03:08:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=8655cbec3995d2890c40a9916566d5599080b2b1'/>
<id>8655cbec3995d2890c40a9916566d5599080b2b1</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>.gdbinit: Have rp() work without a target [ci skip]</title>
<updated>2024-11-12T03:24:32+00:00</updated>
<author>
<name>Alan Wu</name>
<email>alanwu@ruby-lang.org</email>
</author>
<published>2024-11-12T03:04:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=c028bf0c7b97584bd4d104375b3f12aa55c240f9'/>
<id>c028bf0c7b97584bd4d104375b3f12aa55c240f9</id>
<content type='text'>
Useful for core dumps. It used to not work because:

    (gdb) p !""
    evaluation of this expression requires the target program to be active
    (gdb) p 0 == ""
    evaluation of this expression requires the target program to be active
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Useful for core dumps. It used to not work because:

    (gdb) p !""
    evaluation of this expression requires the target program to be active
    (gdb) p 0 == ""
    evaluation of this expression requires the target program to be active
</pre>
</div>
</content>
</entry>
<entry>
<title>Import patches for old macOS from MacPorts</title>
<updated>2024-09-26T01:32:30+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2024-09-26T01:32:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=8350b48cfa7d344d9e2dc9748c26607c1b89d7df'/>
<id>8350b48cfa7d344d9e2dc9748c26607c1b89d7df</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Allow gdb to search source path for required files</title>
<updated>2024-06-11T13:03:58+00:00</updated>
<author>
<name>Matt Valentine-House</name>
<email>matt@eightbitraptor.com</email>
</author>
<published>2024-06-10T15:41:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=ad9fe6f3765007477364479ad6ebbe1099108293'/>
<id>ad9fe6f3765007477364479ad6ebbe1099108293</id>
<content type='text'>
When doing out-of-source builds I often end up wanting to use gdb from
inside a build directory.

Currently if I do that the `.gdbinit` in the ruby source directory is
not read.

Attempting to manually load the `.gdbinit` from the Ruby source
directory errors because of hard coded file-paths that assume we're
running gdb from inside the source tree.

Adding the `-s` flag to the `source` command when loading relative files
signals to gdb to search in the source search path for the required
file, rather than just the current directory.

This allows me to use a custom `.gdbinit` from my build directory that
sets the correct source directory and then loads the Ruby `.gdbinit`.

```
dir ../src
source ../src/.gdbinit
```
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When doing out-of-source builds I often end up wanting to use gdb from
inside a build directory.

Currently if I do that the `.gdbinit` in the ruby source directory is
not read.

Attempting to manually load the `.gdbinit` from the Ruby source
directory errors because of hard coded file-paths that assume we're
running gdb from inside the source tree.

Adding the `-s` flag to the `source` command when loading relative files
signals to gdb to search in the source search path for the required
file, rather than just the current directory.

This allows me to use a custom `.gdbinit` from my build directory that
sets the correct source directory and then loads the Ruby `.gdbinit`.

```
dir ../src
source ../src/.gdbinit
```
</pre>
</div>
</content>
</entry>
</feed>
