/* * call-seq: * breakpoint.pos = string or int * * Sets the position of this breakpoint. */ static VALUE breakpoint_set_pos(VALUE self, VALUE value) { debug_breakpoint_t *breakpoint; Data_Get_Struct(self, debug_breakpoint_t, breakpoint); if(breakpoint->type == BP_METHOD_TYPE) { breakpoint->pos.mid = rb_to_id(StringValue(value)); } else breakpoint->pos.line = FIX2INT(value); return value; }