gdb.rb 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -27,7 +27,7 @@ if `uname -a 2>&1` !~ /x86_64/
27
27
  exit(1)
28
28
  end
29
29
 
30
- unless have_header('python2.5/Python.h') or have_header('python2.6/Python.h')
30
+ unless have_header('python2.5/Python.h') or have_header('python2.6/Python.h') or have_header('python2.4/Python.h')
31
31
  STDERR.puts "\n\n"
32
32
  STDERR.puts "***************************************************************************************"
33
33
  STDERR.puts "***************** Python required (apt-get install python2.5-dev) =( ******************"
@@ -1,7 +1,7 @@
1
1
  spec = Gem::Specification.new do |s|
2
2
  s.name = 'gdb.rb'
3
- s.version = '0.1.0'
4
- s.date = '2009-11-02'
3
+ s.version = '0.1.1'
4
+ s.date = '2009-11-06'
5
5
  s.rubyforge_project = 'gdb-rb'
6
6
  s.summary = 'gdb hooks for MRI'
7
7
  s.description = 'A set of gdb7 extensions for the MRI interpreter'
@@ -35,9 +35,7 @@ class RubyThreads (gdb.Command):
35
35
  self.curr = None
36
36
  self.main = gdb.eval('rb_main_thread')
37
37
 
38
- self.height = gdb.parameter('height') or 26
39
38
  self.unwind = gdb.parameter('unwindonsignal')
40
- gdb.execute('set height 0')
41
39
  gdb.execute('set unwindonsignal on')
42
40
 
43
41
  gdb.execute('watch rb_curr_thread')
@@ -57,7 +55,6 @@ class RubyThreads (gdb.Command):
57
55
 
58
56
  gdb.execute('delete %d' % num)
59
57
  gdb.execute('set unwindonsignal %s' % ('on' if self.unwind else 'off'))
60
- gdb.execute('set height %d' % self.height)
61
58
 
62
59
  def show (self):
63
60
  self.main = gdb.eval('rb_main_thread')
@@ -166,9 +163,7 @@ class RubyTrace (gdb.Command):
166
163
  gdb.breakpoints()[-1].silent = True
167
164
  self.func = gdb.eval('$func')
168
165
 
169
- self.height = gdb.parameter('height') or 26
170
166
  self.unwind = gdb.parameter('unwindonsignal')
171
- gdb.execute('set height 0')
172
167
  gdb.execute('set unwindonsignal on')
173
168
 
174
169
  def teardown (self):
@@ -185,7 +180,6 @@ class RubyTrace (gdb.Command):
185
180
  gdb.execute(c)
186
181
 
187
182
  gdb.execute('set unwindonsignal %s' % ('on' if self.unwind else 'off'))
188
- gdb.execute('set height %d' % self.height)
189
183
 
190
184
  def invoke (self, arg, from_tty):
191
185
  self.dont_repeat()
@@ -222,9 +216,6 @@ class RubyObjects (gdb.Command):
222
216
  super (RubyObjects, self).__init__ ("ruby objects", gdb.COMMAND_NONE)
223
217
 
224
218
  def invoke (self, arg, from_tty):
225
- self.height = gdb.parameter('height') or 26
226
- gdb.execute('set height 0')
227
-
228
219
  if arg == 'classes':
229
220
  self.print_classes()
230
221
  elif arg == 'nodes':
@@ -234,8 +225,6 @@ class RubyObjects (gdb.Command):
234
225
  else:
235
226
  self.print_stats()
236
227
 
237
- gdb.execute('set height %d' % self.height)
238
-
239
228
  def complete (self, text, word):
240
229
  if text == word:
241
230
  if word == '':
@@ -402,3 +391,17 @@ for t in types:
402
391
  gdb.execute("macro define %s %s" % (name, val))
403
392
  RubyObjects.TYPES[int(val,16)] = name[2:].lower()
404
393
 
394
+ settings = """
395
+ set height 0
396
+ set width 0
397
+ set print pretty
398
+
399
+ set history save on
400
+ set history filename ~/.gdbrb_history
401
+
402
+ set debug-file-directory /usr/lib/debug
403
+ """.split("\n")
404
+
405
+ for s in settings:
406
+ if len(s.strip()) > 0:
407
+ gdb.execute(s)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gdb.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aman Gupta
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-02 00:00:00 -08:00
12
+ date: 2009-11-06 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies: []
15
15