<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/.gdbinit, branch v3_4_9</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<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>
<entry>
<title>Remove nd_entry from NODE_GASGN and NODE_GVAR</title>
<updated>2023-08-22T22:59:54+00:00</updated>
<author>
<name>yui-knk</name>
<email>spiketeika@gmail.com</email>
</author>
<published>2023-08-22T09:24:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=00054de6b5ca65f87ca561f31daeb094442638fc'/>
<id>00054de6b5ca65f87ca561f31daeb094442638fc</id>
<content type='text'>
After a0f12a0258e4020bd657ee80b7d8f22bd33ea223 NODE_GASGN and
NODE_GVAR hold same value on both nd_vid and nd_entry.
This commit stops setting value to nd_entry and makes to use only
nd_vid.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
After a0f12a0258e4020bd657ee80b7d8f22bd33ea223 NODE_GASGN and
NODE_GVAR hold same value on both nd_vid and nd_entry.
This commit stops setting value to nd_entry and makes to use only
nd_vid.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix broken wiki links (#8002)</title>
<updated>2023-06-29T21:00:40+00:00</updated>
<author>
<name>Jemma Issroff</name>
<email>jemmaissroff@gmail.com</email>
</author>
<published>2023-06-29T21:00:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=1272865a8ee948816ee9f5484f8adba8e26f45e2'/>
<id>1272865a8ee948816ee9f5484f8adba8e26f45e2</id>
<content type='text'>
Since [Misc #19679] migrated the wiki, these links should be updated
to their new locations.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since [Misc #19679] migrated the wiki, these links should be updated
to their new locations.</pre>
</div>
</content>
</entry>
<entry>
<title>Expand tabs in .gdbinit</title>
<updated>2023-03-31T07:52:47+00:00</updated>
<author>
<name>Takashi Kokubun</name>
<email>takashikkbn@gmail.com</email>
</author>
<published>2023-03-31T07:52:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=a57270a8488dc7faaeb9fd62a2c4368a8cb703bf'/>
<id>a57270a8488dc7faaeb9fd62a2c4368a8cb703bf</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Put misc/gdb.py [experimental]</title>
<updated>2023-03-31T07:20:40+00:00</updated>
<author>
<name>Takashi Kokubun</name>
<email>takashikkbn@gmail.com</email>
</author>
<published>2023-03-31T06:57:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=9f426491ca5250084174d2a16855cce041ca1cee'/>
<id>9f426491ca5250084174d2a16855cce041ca1cee</id>
<content type='text'>
This works like:

```
(gdb) cfp
CFP (count=3, addr=0x7ffff73fef50):
$1 = {pc = 0x555556bf7818, sp = 0x7ffff72ff078, iseq = 0x7ffff2603270, self = 140737344619296, ep = 0x7ffff72ff058, block_code = 0x0,
  __bp__ = 0x7ffff72ff060, jit_return = 0x555558c2b000}

Stack (size=3):
[0] FIXNUM: 1
[1] T_STRING: "" bytesize:0 (embed) encoding:1 coderange:7bit $2 = (struct RString *) 0x7ffff249ea80
[2] [PROMOTED] T_OBJECT: $3 = {flags = 21474844769, klass = 140737344040416}
$4 = {0x24, 0x24, 0x24}

(gdb) cfp + 1
CFP (count=3, addr=0x7ffff73fef90):
$5 = {pc = 0x5555567a78f8, sp = 0x7ffff72ff040, iseq = 0x7ffff26032d0, self = 140737344619296, ep = 0x7ffff72ff038, block_code = 0x0,
  __bp__ = 0x7ffff72ff040, jit_return = 0x555558c2b000}

Stack (size=0):
```
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This works like:

```
(gdb) cfp
CFP (count=3, addr=0x7ffff73fef50):
$1 = {pc = 0x555556bf7818, sp = 0x7ffff72ff078, iseq = 0x7ffff2603270, self = 140737344619296, ep = 0x7ffff72ff058, block_code = 0x0,
  __bp__ = 0x7ffff72ff060, jit_return = 0x555558c2b000}

Stack (size=3):
[0] FIXNUM: 1
[1] T_STRING: "" bytesize:0 (embed) encoding:1 coderange:7bit $2 = (struct RString *) 0x7ffff249ea80
[2] [PROMOTED] T_OBJECT: $3 = {flags = 21474844769, klass = 140737344040416}
$4 = {0x24, 0x24, 0x24}

(gdb) cfp + 1
CFP (count=3, addr=0x7ffff73fef90):
$5 = {pc = 0x5555567a78f8, sp = 0x7ffff72ff040, iseq = 0x7ffff26032d0, self = 140737344619296, ep = 0x7ffff72ff038, block_code = 0x0,
  __bp__ = 0x7ffff72ff040, jit_return = 0x555558c2b000}

Stack (size=0):
```
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix ivar dump for RVARGC in .gdbinit</title>
<updated>2023-03-31T06:58:09+00:00</updated>
<author>
<name>Takashi Kokubun</name>
<email>takashikkbn@gmail.com</email>
</author>
<published>2023-03-31T06:58:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=f500df097f7f191b54d82dd6cace7ede718ce624'/>
<id>f500df097f7f191b54d82dd6cace7ede718ce624</id>
<content type='text'>
It was crashing with:
No symbol "ROBJECT_EMBED_LEN_MAX" in current context.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It was crashing with:
No symbol "ROBJECT_EMBED_LEN_MAX" in current context.
</pre>
</div>
</content>
</entry>
</feed>
