diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-06 06:11:25 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-06 06:11:25 +0000 |
commit | f52a49130fde7f0f884f0dafc10ff6c8d260473d () | |
tree | 1d8085bb5fac96ba8adce7cd2e4bce36923e8afd /.gdbinit | |
parent | a15028bc38a6d2492803780acb7b55456a30051d (diff) |
.gdbinit: print_id in rp_id [ci skip]
* .gdbinit (rp_id): use print_id instead of calling lookup_id_str() in a debugger context. * symbol.c (ID_ENTRY_UNIT): made visible to debuggers. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | .gdbinit | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -398,12 +398,7 @@ define rp_id end end printf "(%ld): ", $id - set $str = lookup_id_str($id) - if $str - rp_string $str - else - echo undef\n - end end end end @@ -1093,7 +1088,11 @@ define print_id set $arylen = $ary->as.heap.len end set $result = $aryptr[($serial % ID_ENTRY_UNIT) * ID_ENTRY_SIZE + $t] - print_string $result end end end |