Wow! Jamis Buck + blog + GDB + C API == mind blowing coolness

S

Stephen Kellett

In message
pat eyler said:
For those of you who don't follow Jamis Buck's blog (and why
don't you?) you should run, not walk, over to
http://weblog.jamisbuck.org/2006/9/22/inspecting-a-live-ruby-process
to get instructions on using GDB and the Ruby C API to get a
stack trace out of a running process. I'm guessing that there
may be more magic hiding in this corner, but Jamis has done a
great job of shining a light into it to get us started.

The most amazing thing for me (that I get from this thread) is that
people are amazed that gdb is so good when that was obvious in 1990. Its
even better if you run it inside emacs as you can view your source in
one window and gdb in the other (which you could also do in 1990).

Stephen
 
T

ts

S> even better if you run it inside emacs as you can view your source in
S> one window and gdb in the other (which you could also do in 1990).

You don't need emacs, just hit ^X-2 (Control-X 2) and you'll have 2 windows
* one with the source
* the other with the assembler

:)


Guy Decoux
 
P

pat eyler

In message
The most amazing thing for me (that I get from this thread) is that
people are amazed that gdb is so good when that was obvious in 1990. Its
even better if you run it inside emacs as you can view your source in
one window and gdb in the other (which you could also do in 1990).

The part that excites me is the idea of using GDB with the Ruby C
API to help debug Ruby scripts.

Yes, GDB and emacs have been a cool combination for a long time,
I'm just happy to see another way of using them.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,999
Messages
2,570,243
Members
46,836
Latest member
login dogas

Latest Threads

Top