From 295bc2fe2577336807db6e2c30bd642bdb6482bc Mon Sep 17 00:00:00 2001 From: yugui Date: Tue, 5 Jan 2010 05:59:23 +0000 Subject: removes the dtrace support. reverts r26239, r26238 and r26235. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_exec.h | 35 ++--------------------------------- 1 file changed, 2 insertions(+), 33 deletions(-) (limited to 'vm_exec.h') diff --git a/vm_exec.h b/vm_exec.h index 0a72f17854..9ae81794bd 100644 --- a/vm_exec.h +++ b/vm_exec.h @@ -52,39 +52,8 @@ typedef rb_iseq_t *ISEQ; #else #define debugs -extern const char *rb_vm_insn_name(int); -#define DEBUG_ENTER_INSN(insn) \ - do { \ - if (UNLIKELY(TRACE_INSN_ENTRY_ENABLED())) { \ - rb_control_frame_t *cfp = GET_CFP(); \ - rb_iseq_t *iseq = cfp->iseq; \ - if (iseq != NULL && VM_FRAME_TYPE(cfp) != VM_FRAME_MAGIC_FINISH) { \ - VALUE *seq = iseq->iseq; \ - int pc = cfp->pc - iseq->iseq_encoded; \ - FIRE_INSN_ENTRY((char *)rb_vm_insn_name(seq[pc]), \ - seq+1, \ - (char *)rb_sourcefile(), \ - rb_sourceline()); \ - } \ - } \ - } \ - while (0) -#define DEBUG_END_INSN() \ - do { \ - if (UNLIKELY(TRACE_INSN_RETURN_ENABLED())) { \ - rb_control_frame_t *cfp = GET_CFP(); \ - rb_iseq_t *iseq = cfp->iseq; \ - if (iseq != NULL && VM_FRAME_TYPE(cfp) != VM_FRAME_MAGIC_FINISH) { \ - VALUE *seq = iseq->iseq; \ - int pc = cfp->pc - iseq->iseq_encoded; \ - FIRE_INSN_RETURN((char *)rb_vm_insn_name(seq[pc]), \ - seq+1, \ - (char *)rb_sourcefile(), \ - rb_sourceline()); \ - } \ - } \ - } \ - while (0) +#define DEBUG_ENTER_INSN(insn) +#define DEBUG_END_INSN() #endif #define throwdebug if(0)printf -- cgit v1.2.3