aboutsummaryrefslogtreecommitdiffstats
path: root/misc
Commit message (Collapse)AuthorAgeFilesLines
* Remove obsoleted lldb_yjit.pyTakashi Kokubun2024-01-081-47/+0
| | | | | | | which clearly seems to be written for Ruby 3.1 YJIT that was not rewritten in Rust yet. Since it has been left there as is, I don't think anybody is actively using this script. We could add a new one if we need it again.
* Introduce NODE_FILEyui-knk2024-01-021-0/+2
| | | | | | | | `__FILE__` was managed by `NODE_STR` with `String` object. This commit introduces `NODE_FILE` and `struct rb_parser_string` so that 1. `__FILE__` is detectable from AST Node 2. Reduce dependency ruby object
* LLDB: Print actual node structure of NODE_LINEyui-knk2024-01-021-0/+2
|
* YJIT: implement call fuzzer script (#9129)Maxime Chevalier-Boisvert2023-12-112-0/+385
| | | | | | | | | | | | | | | | | | | | | | | * YJIT: implement call fuzzer script Attempt to detect bugs in YJIT call implementation. * Add basic checks for rest, kwrest. Impprove formatting. * Refactor call fuzzer to make it more powerful and maintainable Compute checksum of arguments * Fix checksum computation. Add useless locals as sussged by Alan. * Add some useless if statements * Add arguments of different types * Pass object arguments as well. Force different shapes. * Compute fuzzing time/speed * Make use of block param
* Fix RCLASS_EXT dump [ci skip]Nobuyoshi Nakada2023-12-061-1/+1
|
* LLDB: Dump table structs in Hash [ci skip]Nobuyoshi Nakada2023-10-311-1/+6
|
* LLDB: Use `expression` to save the result into the history [ci skip]Nobuyoshi Nakada2023-10-253-162/+160
|
* LLDB: Print actual node structure [ci skip]yui-knk2023-10-101-1/+211
|
* Fix RBignum print [ci skip]Nobuyoshi Nakada2023-09-302-6/+5
|
* Fix RArray print [ci skip]Nobuyoshi Nakada2023-09-302-4/+8
|
* Delete empty lines at EOF [ci skip]Nobuyoshi Nakada2023-09-305-7/+0
|
* Fix string2cstr in lldb_cruby.py [ci skip]Peter Zhu2023-08-291-2/+1
|
* Fix gdb.py for C frames [ci skip]Takashi Kokubun2023-08-231-2/+3
|
* gdb.py: Support dumping a dummy frame [ci skip]Takashi Kokubun2023-08-031-10/+13
|
* * remove trailing spaces. [ci skip]git2023-08-021-3/+3
|
* gdb.py: Add -a option to dump all frames [ci skip]Takashi Kokubun2023-08-021-16/+27
|
* gdb.py: Print Env based on EP instead of BPTakashi Kokubun2023-08-021-5/+23
| | | | because EP could be escaped.
* misc/gdb.py: Allow overriding stack_size [ci skip]Takashi Kokubun2023-07-201-8/+26
|
* Get rid of obsoleted __bp__ referencesTakashi Kokubun2023-07-201-5/+5
|
* Add ruby_globals to lldb for easier debugging (#8041)Jemma Issroff2023-07-071-0/+1
|
* `RString::len` was moved at 7577c101ed6452de3e72fadb43db595946acc701Nobuyoshi Nakada2023-06-111-2/+1
| | | | [ci skip]
* Add an example for rust-analyzer.cargo.unsetTest [ci skip]Takashi Kokubun2023-06-051-0/+3
|
* LLDB: Fix T_ARRAY inspect [ci skip]Nobuyoshi Nakada2023-04-101-2/+2
|
* gdb: Fix a command exampleTakashi Kokubun2023-04-011-1/+1
| | | | | It was actually harder to type `cfp + 1`. `cfp 1` also works and is more useful.
* gdb: Fix specvalTakashi Kokubun2023-04-011-3/+4
| | | | | Somehow my gdb stopped recognizing VM_BLOCK_HANDLER_NONE (macro) today. Just changing it to a safer code.
* gdb: Don't dump params and locals for C framesTakashi Kokubun2023-04-011-11/+12
|
* gdb: Visualize register positions on the leftTakashi Kokubun2023-03-311-1/+14
|
* gdb: Always show actual values in cfpTakashi Kokubun2023-03-311-5/+7
|
* gdb: Show params and locals in cfpTakashi Kokubun2023-03-311-1/+12
|
* gdb: Dump env data in cfp commandTakashi Kokubun2023-03-311-3/+72
|
* Put misc/gdb.py [experimental]Takashi Kokubun2023-03-311-0/+33
| | | | | | | | | | | | | | | | | | | | | | | | 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): ```
* [ci skip] LLDB: Fix rp for arraysMatt Valentine-House2023-03-301-3/+3
|
* Fix missing receiver [ci sip]Nobuyoshi Nakada2023-03-311-1/+1
|
* [ci skip] Move rb_id2str into new LLDB formatMatt Valentine-House2023-03-212-1/+50
|
* * remove trailing spaces. [ci skip]git2023-03-172-11/+11
|
* [ci skip] Move rp helper to new LLDB formatMatt Valentine-House2023-03-177-16/+455
| | | | | For now, the old function still exists as `old_rp`, in order to debug issues with this command.
* [lldb] Add a print_flags command (#7358)Matt Valentine-House2023-02-222-3/+33
|
* Tell VSCode to debug test.rb by default [ci-skip]Matt Valentine-House2023-02-101-1/+1
|
* Put example VSCode configs in misc/.vscode [ci skip]Takashi Kokubun2023-02-034-0/+33
| | | | | | | | | | They are needed very often but it's hard to remember. I thought it'd be useful to just copy that to /.vscode and edit that. Usage: cp -r misc/.vscode .vscode Don't symlink it because you'd edit it but not want to commit it.
* Ivar copy needs to happen _before_ setting the shapeAaron Patterson2022-11-011-2/+2
| | | | | | | | When we copy instance variables, it is possible for the GC to be kicked off. The GC looks at the shape to determine what slots to mark inside the object. If the shape is set too soon, the GC could think that there are more instance variables on the object than there actually are at that moment.
* Revert "Revert "This commit implements the Object Shapes technique in CRuby.""Jemma Issroff2022-10-111-0/+1
| | | | This reverts commit 9a6803c90b817f70389cae10d60b50ad752da48f.
* Revert "This commit implements the Object Shapes technique in CRuby."Aaron Patterson2022-09-301-1/+0
| | | | This reverts commit 68bc9e2e97d12f80df0d113e284864e225f771c2.
* This commit implements the Object Shapes technique in CRuby.Jemma Issroff2022-09-281-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Object Shapes is used for accessing instance variables and representing the "frozenness" of objects. Object instances have a "shape" and the shape represents some attributes of the object (currently which instance variables are set and the "frozenness"). Shapes form a tree data structure, and when a new instance variable is set on an object, that object "transitions" to a new shape in the shape tree. Each shape has an ID that is used for caching. The shape structure is independent of class, so objects of different types can have the same shape. For example: ```ruby class Foo def initialize # Starts with shape id 0 @a = 1 # transitions to shape id 1 @b = 1 # transitions to shape id 2 end end class Bar def initialize # Starts with shape id 0 @a = 1 # transitions to shape id 1 @b = 1 # transitions to shape id 2 end end foo = Foo.new # `foo` has shape id 2 bar = Bar.new # `bar` has shape id 2 ``` Both `foo` and `bar` instances have the same shape because they both set instance variables of the same name in the same order. This technique can help to improve inline cache hits as well as generate more efficient machine code in JIT compilers. This commit also adds some methods for debugging shapes on objects. See `RubyVM::Shape` for more details. For more context on Object Shapes, see [Feature: #18776] Co-Authored-By: Aaron Patterson <tenderlove@ruby-lang.org> Co-Authored-By: Eileen M. Uchitelle <eileencodes@gmail.com> Co-Authored-By: John Hawthorn <john@hawthorn.email>
* Revert this until we can figure out WB issues or remove shapes from GCAaron Patterson2022-09-261-5/+1
| | | | | | | | | | Revert "* expand tabs. [ci skip]" This reverts commit 830b5b5c351c5c6efa5ad461ae4ec5085e5f0275. Revert "This commit implements the Object Shapes technique in CRuby." This reverts commit 9ddfd2ca004d1952be79cf1b84c52c79a55978f4.
* This commit implements the Object Shapes technique in CRuby.Jemma Issroff2022-09-261-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Object Shapes is used for accessing instance variables and representing the "frozenness" of objects. Object instances have a "shape" and the shape represents some attributes of the object (currently which instance variables are set and the "frozenness"). Shapes form a tree data structure, and when a new instance variable is set on an object, that object "transitions" to a new shape in the shape tree. Each shape has an ID that is used for caching. The shape structure is independent of class, so objects of different types can have the same shape. For example: ```ruby class Foo def initialize # Starts with shape id 0 @a = 1 # transitions to shape id 1 @b = 1 # transitions to shape id 2 end end class Bar def initialize # Starts with shape id 0 @a = 1 # transitions to shape id 1 @b = 1 # transitions to shape id 2 end end foo = Foo.new # `foo` has shape id 2 bar = Bar.new # `bar` has shape id 2 ``` Both `foo` and `bar` instances have the same shape because they both set instance variables of the same name in the same order. This technique can help to improve inline cache hits as well as generate more efficient machine code in JIT compilers. This commit also adds some methods for debugging shapes on objects. See `RubyVM::Shape` for more details. For more context on Object Shapes, see [Feature: #18776] Co-Authored-By: Aaron Patterson <tenderlove@ruby-lang.org> Co-Authored-By: Eileen M. Uchitelle <eileencodes@gmail.com> Co-Authored-By: John Hawthorn <john@hawthorn.email>
* Write interface instead of interfactKaĆ­que Kandy Koga2022-08-191-1/+1
|
* * remove trailing spaces. [ci skip]git2022-08-191-3/+3
|
* [ci skip][Feature #18910][lldb] Dedup lldb_initMatt Valentine-House2022-08-182-28/+31
| | | | by moving it fully into RbBaseCommand
* [ci-skip][Feature #18910][lldb] New directory structureMatt Valentine-House2022-08-186-6/+11
| | | | | Push the newly refactored lldb files into a sub-directory so that we're not cluttering up the misc directory
* [ci-skip][Feature #18910][lldb] Port rclass_ext to new LLDB FrameworkMatt Valentine-House2022-08-182-19/+14
|