Skip to content

Commit 0bdfb1d

Browse files
committed
Improvements to tests.
1 parent 1d2cbc8 commit 0bdfb1d

File tree

11 files changed

+785
-603
lines changed

11 files changed

+785
-603
lines changed

.gitignore

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,4 @@
66
/.covered.db
77
/external
88

9-
# YARD artifacts
10-
.yardoc
11-
_yardoc
12-
doc/
13-
14-
# Bundler
15-
vendor/bundle
16-
17-
# Test artifacts
18-
.covered.db
19-
20-
# IDE
21-
.vscode/
22-
.idea/
9+
**/__pycache__

data/ruby/gdb/init.py

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,19 @@
44
This module loads all Ruby debugging extensions for GDB.
55
"""
66

7+
import gdb
78
import os
89
import sys
910

1011
# Get the directory containing this file
11-
_ruby_gdb_dir = os.path.dirname(os.path.abspath(__file__))
12+
ruby_gdb_dir = os.path.dirname(os.path.abspath(__file__))
1213

13-
# Add to Python path if not already there
14-
if _ruby_gdb_dir not in sys.path:
15-
sys.path.insert(0, _ruby_gdb_dir)
14+
# Add to Python path for imports
15+
if ruby_gdb_dir not in sys.path:
16+
sys.path.insert(0, ruby_gdb_dir)
1617

17-
# Load object inspection extensions
18-
exec(open(os.path.join(_ruby_gdb_dir, 'object.py')).read())
19-
20-
# Load fiber debugging extensions
21-
exec(open(os.path.join(_ruby_gdb_dir, 'fiber.py')).read())
22-
23-
print("Ruby GDB extensions loaded successfully!")
24-
print("Use 'help rb-' to see available Ruby debugging commands.")
18+
# Load object inspection extensions:
19+
import object
2520

21+
# Load fiber debugging extensions:
22+
import fiber

0 commit comments

Comments
 (0)