summaryrefslogtreecommitdiff
path: root/misc
Commit message (Collapse)AuthorAgeFilesLines
* Fixed misspellingsNobuyoshi Nakada2019-12-201-1/+1
| | | | Fixed misspellings reported at [Bug #16437], only in ruby and rubyspec.
* lldb_cruby.py: improved dump of SymbolNobuyoshi Nakada2019-11-251-5/+10
| | | | [ci skip]
* lldb_cruby.py: fixed dump of embedded RArrayNobuyoshi Nakada2019-11-251-1/+4
| | | | [ci skip]
* Refined `rp` output [ci skip]Nobuyoshi Nakada2019-10-241-14/+15
| | | | | So that the result structure can be accessed as `$number` variables, not a mere `VALUE`.
* lldb_cruby.py: fixed inspecting string [ci skip]Nobuyoshi Nakada2019-10-091-5/+2
| | | | | | | | | | | | Show the size of String. To see the whole contents even after NUL char: ``` (lldb) rp str (const char [5]) $1 = "x" (lldb) memory read -s1 --format x --count `sizeof($1)` -- &$1 0x1010457a8: 0x78 0x00 0x61 0x61 0x61 ```
* lldb_cruby.py: fixed embedded string ptr [ci skip]Nobuyoshi Nakada2019-10-091-1/+3
| | | | Use GetLocation to get the address of embedded array.
* Resolve unused local variable reported by LGTMRomain Tartière2019-10-031-1/+1
| | | | | | | | | LGTM reports that the value assigned to local variable 'shared' is never used: https://lgtm.com/projects/g/ruby/ruby/snapshot/f319a5d064627c6641817ec2ed16b97b4d215148/files/misc/lldb_cruby.py#x6512c0281581a470:1 This problem was introduced in by the refactoring that took place in 7c496b6624f720d539e3c0b40f122a9422a13b99.
* lldb_inspect: removed unnecessary newline and `end` optionNobuyoshi Nakada2019-09-251-3/+2
|
* misc/lldb_cruby.py: update for python3 [ci skip]Nobuyoshi Nakada2019-09-241-35/+36
| | | | lldb module bundled with Xcode is for Python 3 now.
* misc/lldb_cruby.py: removed unused module `commands` [ci skip]Nobuyoshi Nakada2019-09-241-1/+0
|
* Add some NODE information for lldbAaron Patterson2019-08-291-0/+6
| | | | | Just adds a conditional in the lldb scripts so we can more easily debug NODE objects.
* Fix ArgumentError in expand_tabs.rbJeremy Evans2019-08-251-2/+2
| | | | | | | | | This fixes the following in my environment: misc/expand_tabs.rb:29:in `=~': invalid byte sequence in US-ASCII (ArgumentError) This switches from =~ to start_with? as a regular expression is not actually needed here.
* Simplify expand_tabs.rb file selectionTakashi Kokubun2019-08-231-5/+3
|
* Add misc/expand_tabs.rb ported from auto-style.rbTakashi Kokubun2019-08-221-0/+171
| | | | | | | | | | | | | This is implemented to close [Misc #16112] because all other options got at least one objection, and nobody has objected to this solution. This code is a little complicated for the purpose, but that's just because it includes some historical code for auto-style.rb: https://github.com/ruby/ruby-commit-hook/blob/918a7c31b69ad2f7b125608c1c6a1f4fd01ec15a/bin/auto-style.rb Please feel free to improve this file as you like. [Misc #16112]
* add FROZEN to lldb debug outputAaron Patterson2019-05-091-0/+2
|
* Fix typo in lldb scripttenderlove2019-04-022-3/+7
| | | | | | Also fix tests git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add regex support to lldb debug outputtenderlove2019-04-011-0/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ruby-style.el: ruby-style-c-mode by VCS [ci skip]nobu2018-11-271-1/+14
| | | | | | | * misc/ruby-style.el (ruby-style-c-mode): set ruby-style if the remote repository is ruby. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lldb_cruby.py: T_COMPLEX support [ci skip]nobu2018-10-201-0/+12
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65254 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lldb_cruby.py: T_RATIONAL support [ci skip]nobu2018-10-201-0/+11
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lldb_rp: support Symbol [ci skip]nobu2018-10-041-0/+11
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64914 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lldb_rp: support T_CLASS,T_MODULE,T_ICLASS [ci skip]nobu2018-10-031-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64909 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lldb_rp: use append_command_output [ci skip]nobu2018-10-031-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lldb_rp: support more types [ci skip]nobu2018-10-031-0/+22
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lldb_rp: fix the order of results [ci skip]nobu2018-10-031-20/+28
| | | | | | | The outputs from HandleCommand are printed immediately before print statements. Fix the order in `result` by capturing the outputs. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lldb_rp: reload debug info if not loaded yet [ci skip]nobu2018-10-021-0/+3
| | | | | | | As debug infos in shared libraries are not accessible until loaded, retry loading the infos when needed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lldb_cruby.py: T_DATA support [ci skip]nobu2018-10-011-0/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Partly reverted for ruby-style.el.hsbt2018-09-142-0/+82
| | | | | | | | Revert "Removed old elisp files. New upstream repository was moved https://github.com/ruby/elisp." This reverts commit 7eedd308b841e7b8eb4bc36211d28faf3521ee92. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Added entries for lldb files in misc directory.hsbt2018-09-141-3/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Removed old elisp files. New upstream repository was moved ↵hsbt2018-09-148-1657/+0
| | | | | | https://github.com/ruby/elisp. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Remove old ruby-mode.elkazu2018-09-131-1584/+0
| | | | | | | | Use emacs bundled ruby-mode.el instead. [Feature #6823] [ci skip] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* misc/ruby-style.el: use spaces for indentationk0kubun2018-03-171-1/+1
| | | | | | | | instead of hard tabs. [Bug #14246] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ruby-additional.el: shorten here-doc markersnobu2017-10-021-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Import ruby-electric.el version 2.3.1 from upstreamknu2017-08-101-33/+47
| | | | | | It now supports [enh-ruby-mode](https://github.com/zenspider/enhanced-ruby-mode). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add initial test for lldb extensionnaruse2017-08-032-0/+38
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Port more commands from .gdbinit to lldbyugui2017-08-021-0/+63
| | | | | | * misc/lldb_cury.py (dump_node, SDR, rb_count_objects): added git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* debug.c: more enumsnobu2017-06-011-14/+0
| | | | | | | * debug.c (ruby_dummy_gdb_enums): add enums for RObject, RModule, RString, RArray. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lldb_cruby.py: eval outside framesnobu2017-05-311-2/+9
| | | | | | | * misc/lldb_cruby.py (lldb_rp): evaluate without frames when no process is running, and show error messages. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lldb_cruby.py: constants from the targetnobu2017-05-281-87/+68
| | | | | | | * misc/lldb_cruby.py (lldb_init): get constants from ruby_dummy_gdb_enums in the target. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Initial commit of LLDB port of debug utilitynaruse2017-05-271-0/+138
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ruby-additional.el: unquoted code blocknobu2016-11-161-1/+1
| | | | | | | | * misc/ruby-additional.el (ruby-insert-heredoc-code-block): make code between "begin;" and "end;" unquoted. still quotable before "begin;". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Use https instead of http in some URLskazu2016-09-111-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ruby-additional.el: adjust heredoc line numbernobu2016-06-071-2/+2
| | | | | | | * misc/ruby-additional.el (ruby-insert-heredoc-code-block): insert a newline adjust the line number for "begin" line. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ruby-mode.el: squiggly heredocnobu2016-06-021-4/+4
| | | | | | | | * misc/ruby-mode.el (ruby-here-doc-beg-re), (ruby-here-doc-beg-match, ruby-parse-partial): Support for `squiggly heredoc' syntax in ruby-mode. [Fix GH-1372] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ruby-insert-heredoc-code-blocknobu2016-05-281-0/+12
| | | | | | | * misc/ruby-additional.el (ruby-insert-heredoc-code-block): insert here document code block for assert_separately mainly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ruby-style.el: add an instruction to loadnobu2016-02-291-0/+2
| | | | | | [ci skip] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ruby-additional.el: ruby-decode-unicodenobu2016-01-181-1/+27
| | | | | | | * misc/ruby-additional.el (ruby-decode-unicode): new function to convert escaped Unicode to raw string. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ruby-additional.el: escape control codenobu2015-12-311-4/+16
| | | | | | | * misc/ruby-additional.el (ruby-encode-unicode): escape control code except for LF. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ruby-additional.el: encode non-ASCII code onlynobu2015-12-311-1/+1
| | | | | | | * misc/ruby-additional.el (ruby-encode-unicode): encode non-ASCII code only, excluding ASCII control code, e.g. \t, \n, etc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* parse.y: ANDDOT fluent interfacenobu2015-11-121-1/+1
| | | | | | | | * parse.y (parser_yylex): ANDDOT at the head of the line denote line continuation from previous one to support fluent interface, as well as single dot. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e