[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Regexp bytecode disassembler

From: Mattias Engdegård
Subject: Regexp bytecode disassembler
Date: Fri, 20 Mar 2020 13:27:35 +0100

It is sometimes useful to inspect the generated regexp engine bytecode, but 
doing so currently involves recompiling with REGEX_EMACS_DEBUG configured, 
setting an internal variable using a debugger, and watching data scrolling past 
on stderr.

This patch adds a lisp-based regexp bytecode disassembler which is always 
available without any runtime cost to the regexp engine. It is mainly a tool 
for maintainers but curious users may find it useful as well. It has already 
revealed one bug in the regexp compiler, now fixed (f189e5dc10).

Any objections against it being added (to master)?

Attachment: 0001-Add-regexp-bytecode-disassembler.patch
Description: Binary data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]