summaryrefslogtreecommitdiff
path: root/.gdbinit
Commit message (Collapse)AuthorAgeFilesLines
* Expand tabs in .gdbinitTakashi Kokubun2023-03-311-25/+25
|
* Put misc/gdb.py [experimental]Takashi Kokubun2023-03-311-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | 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): ```
* Fix ivar dump for RVARGC in .gdbinitTakashi Kokubun2023-03-301-1/+1
| | | | | It was crashing with: No symbol "ROBJECT_EMBED_LEN_MAX" in current context.
* Fix a warning in .gdbinitTakashi Kokubun2023-01-091-1/+1
| | | | | Warning: 'set logging on', an alias for the command 'set logging enabled', is deprecated. Use 'set logging enabled on'.
* Fix gdb incompatibilies in rp_class, rb_ps_vmnick evans2022-08-201-5/+5
| | | | | | Other changes are needed to bring .gdbinit up-to-date with current ruby. It looks like lldb is the preferred approach now, and that config *is* being kept up-to-date. Still, this might be helpful to someone?
* .gdbinit: Fix indentation in print_id [ci skip]Adam Jensen2021-02-061-4/+4
|
* kill OBJ_TAINT etc.卜部昌平2021-01-271-2/+1
| | | | | | | | | Now that RUBY_FL_TAINT is recycled to become new RUBY_FL_SHAREABLE. Setting/clearing this flag from extension libraries break Ractor. Especially problematic one is OBJ_INFECT, which would make non-shareable objects travel across Ractor boundaries. Such operations should just be prohibited.
* Add T_MOVED to rp command of GDBPeter Zhu2020-12-041-0/+5
|
* .gdbinit: struct RHash::basic is not a pointer卜部昌平2020-06-121-3/+3
|
* .gdbinit: as.heap.aux.shared no longer exist卜部昌平2020-06-121-1/+1
| | | | Maybe 182ae1407b3f6597cdbf6872f788c1ed3aa22a35 missed it.
* Redmine /projects/ruby-trunk is now redirectedTakashi Kokubun2019-12-311-1/+1
| | | | to /projects/ruby-master
* Prefix global_symbols with `ruby_`Nobuyoshi Nakada2019-05-161-2/+2
|
* .gdbinit (rp): follow up changes in r66390ktsj2019-02-171-2/+2
| | | | | | | RHASH_ARRAY_{LEN,BOUND}_{MASK,SHIFT} have been renamed to RHASH_AR_TABLE_{SIZE,BOUND}_{MASK,SHIFT}. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* support theap for T_HASH. [Feature #14989]ko12018-10-301-2/+6
| | | | | | | | | | | | | | | | | * hash.c, internal.h: support theap for small Hash. Introduce RHASH_ARRAY (li_table) besides st_table and small Hash (<=8 entries) are managed by an array data structure. This array data can be managed by theap. If st_table is needed, then converting array data to st_table data. For st_table using code, we prepare "stlike" APIs which accepts hash value and are very similar to st_ APIs. This work is based on the GSoC achievement by tacinight <tacingiht@gmail.com> and refined by ko1. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* .gdbinit: startup without shell for macOS Sierra and laternobu2018-08-101-0/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64260 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* .gdbinit: expand RBASIC macro for old gdb on macnobu2018-06-141-28/+28
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add "print_flags" gdb command.ko12018-06-131-0/+31
| | | | | | | * .gdbinit (print_flags): added to show raw FLAGS info for objects. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Unused macro and fieldyui-knk2018-05-291-6/+0
| | | | | | | | * node.h (nd_cnt, struct RNode): nd_cnt has been unused since r60239, and also cnt field. * .gdbinit (nd_cnt): ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63519 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Unused macroyui-knk2018-05-291-6/+0
| | | | | | | * node.h (nd_noex): nd_noex has been unused since r24128. * .gdbinit (nd_noex): ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Unused macroyui-knk2018-05-291-6/+0
| | | | | | | * node.h (nd_frml): nd_frml has been unused since r34134. * .gdbinit (nd_frml): ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Unused macroyui-knk2018-05-291-6/+0
| | | | | | | * node.h (nd_argc): nd_argc has been unused since r24128. * .gdbinit (nd_argc): ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Unused macro and fieldyui-knk2018-05-281-5/+0
| | | | | | | | * node.h (nd_cfnc, struct RNode): nd_cfnc has been unused since r49938, and also cfunc field. * .gdbinit (nd_cfnc): ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* .gdbinit (print_lineno): support a succinct bitvector implementation [ci skip]ktsj2018-02-101-10/+40
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* .gdbinit (print_lineno): follow up changes in r61534, r61536ktsj2018-01-091-5/+6
| | | | | | insns_info was refactored. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* .gdbinit: fix print_pathobjktsj2017-11-181-1/+1
| | | | | | $str is not C string but RString. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* .gdbinit: follow up changes in r60726ktsj2017-11-181-2/+2
| | | | | | | rb_iseq_constant_body::line_info_size and line_info_table have been renamed to insns_info_size, insns_info. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fixup r60440 [ci skip]kazu2017-11-081-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* .gdbinit: follow up changes in r60440ktsj2017-10-291-2/+2
| | | | | | ruby_current_vm has been renamed to ruby_current_vm_ptr. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Use rb_execution_context_t instead of rb_thread_tko12017-10-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | to represent execution context [Feature #14038] * vm_core.h (rb_thread_t): rb_thread_t::ec is now a pointer. There are many code using `th` to represent execution context (such as cfp, VM stack and so on). To access `ec`, they need to use `th->ec->...` (adding one indirection) so that we need to replace them by passing `ec` instead of `th`. * vm_core.h (GET_EC()): introduced to access current ec. Also remove `ruby_current_thread` global variable. * cont.c (rb_context_t): introduce rb_context_t::thread_ptr instead of rb_context_t::thread_value. * cont.c (ec_set_vm_stack): added to update vm_stack explicitly. * cont.c (ec_switch): added to switch ec explicitly. * cont.c (rb_fiber_close): added to terminate fibers explicitly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* debug.c: imemo_masknobu2017-10-241-3/+3
| | | | | | | | * .gdbinit (rp, rp_imemo, rb_ps_thread): update imemo_mask. * debug.c (ruby_dummy_gdb_enums): include imemo_types. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* .gdbinit: newline at rp_id [ci skip]nobu2017-10-081-1/+2
| | | | | | | | * .gdbinit (rp_id): add a newline. * .gdbinit (print_id): should not print a newline here. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* .gdbinit: print_id in rp_id [ci skip]nobu2017-10-061-7/+6
| | | | | | | | | * .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
* output some strings without quotesnaruse2017-09-121-11/+25
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Follow latest VM changesnaruse2017-09-111-8/+29
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* .gdbinit: fix nd_treenobu2017-05-171-1/+1
| | | | | | | * .gdbinit (nd_tree): use rb_str_tmp_new to get rid of `__extension__'. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rb_execution_context_t: move stack, stack_size and cfp from rb_thread_tnormal2017-05-091-2/+2
| | | | | | | | | | The goal is to reduce rb_context_t and rb_fiber_t size by removing the need to store the entire rb_thread_t in there. [ruby-core:81045] Work-in-progress: soon, we will move more fields here. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* .gdbinit: suppress gdb message [ci skip]nobu2017-03-181-1/+3
| | | | | | | * .gdbinit (rp): check number of instance variables to get rid of "Invalid number 0 of repetitions." message at an empty object. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* .gdbinit: RArray in history [ci skip]nobu2017-03-181-2/+2
| | | | | | | * .gdbinit (rp): put the contents of RArray in value history, for later use. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* .gdbinit: rp_bignumnobu2017-02-251-13/+46
| | | | | | * .gdbinit (rp_bignum): print bignum from higher digits. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* .gdbinit: fix on empty strings [ci skip]nobu2017-01-251-1/+5
| | | | | | | * .gdbinit (output_string): get rid of "Invalid number 0 of repetitions" error on empty strings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* .gdbinit: op symbols [ci skip]nobu2017-01-251-0/+20
| | | | | | * .gdbinit (rp_id): add unhandled operator symbols. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* .gdbinit: refine rp [ci skip]nobu2017-01-151-16/+13
| | | | | | | * .gdbinit (rp, output_string, rp): show the contents after NUL char. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* .gdbinit: refine rpnobu2016-12-251-11/+12
| | | | | | | * .gdbinit (rp): refine output of T_STRUCT and T_BIGNUM to show all elements. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Use rb_mod_name instead of classnamenaruse2016-11-151-2/+1
| | | | | | classname() is static function. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* .gdbinit: improve rp [ci skip]nobu2016-11-121-2/+8
| | | | | | | * .gdbinit (rp): improve T_OBJECT dump. show the contents of the instance variables table. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * .gdbinit: follow r55766's VM change.naruse2016-08-241-14/+18
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * .gdbinit (rb_ps_thread): show the detail of cfunc in ruby levelnaruse2016-07-011-5/+79
| | | | | | backtrace. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * .gdbinit (rb_count_objects): added gdb version of count_objects().naruse2016-07-011-0/+86
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * .gdbinit (rb_ps_thread): show ruby level backtrace.naruse2016-06-301-0/+62
| | | | | | | | | Usually you can call `rb_ps` to show ruby leve backtraces for all living threads. Note that it can call with core file like `gcore <pid>` and `gdb ruby core.<pid>`. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* .gdbinit: improve rb_imemo [ci skip]nobu2016-02-091-1/+11
| | | | | | * .gdbinit (rp_imemo): support imemo_ment and imemo_iseq. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e