Fix missing "re" module import in GDB support script
authoraperez <aperez@igalia.com>
Tue, 21 Jul 2015 09:28:34 +0000 (02:28 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 21 Jul 2015 09:28:50 +0000 (09:28 +0000)
The gdb-v8-support.py script uses the "re" module to match regular expression,
but it does not import it, resulting in an error when loading the script from
GDB. This patch adds the missing import.

BUG=

Review URL: https://codereview.chromium.org/1245713002

Cr-Commit-Position: refs/heads/master@{#29770}

tools/gdb-v8-support.py

index 8f5ff5b..5d26146 100644 (file)
@@ -25,6 +25,7 @@
 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
+import re
 
 kSmiTag = 0
 kSmiTagSize = 1