Class: CFrida::Crash

Inherits:
GObject show all
Defined in:
ext/c_frida/Crash.c

Instance Method Summary collapse

Methods inherited from GObject

#off, #on

Instance Method Details

#inspectObject Also known as: to_s



21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'ext/c_frida/Crash.c', line 21

VALUE Crash_inspect(VALUE self)
{
    VALUE s, report;

    report = rb_funcall(self, rb_intern("report"), 0, NULL);
    s = rb_sprintf("#<Crash: pid=%+"PRIsVALUE", process_name=%+"PRIsVALUE", summary=%+"PRIsVALUE", report=<%+"PRIsVALUE" bytes>, parameters=%+"PRIsVALUE">", \
                   rb_funcall(self, rb_intern("pid"), 0, NULL),
                   rb_funcall(self, rb_intern("process_name"), 0, NULL),
                   rb_funcall(self, rb_intern("summary"), 0, NULL),
                   (report == Qnil) ? UINT2NUM(0) : rb_funcall(report, rb_intern("length"), 0, NULL),
                   rb_funcall(self, rb_intern("parameters"), 0, NULL)
                  );
    return (s);
}

#parametersObject



76
77
78
79
# File 'ext/c_frida/Crash.c', line 76

static VALUE Crash_parameters(VALUE self)
{
    return (rb_ivar_get(self, rb_intern("parameters")));
}

#pidObject



40
41
42
43
# File 'ext/c_frida/Crash.c', line 40

static VALUE Crash_pid(VALUE self)
{
    return (rb_ivar_get(self, rb_intern("pid")));
}

#process_nameObject



49
50
51
52
# File 'ext/c_frida/Crash.c', line 49

static VALUE Crash_process_name(VALUE self)
{
    return (rb_ivar_get(self, rb_intern("process_name")));
}

#reportObject



67
68
69
70
# File 'ext/c_frida/Crash.c', line 67

static VALUE Crash_report(VALUE self)
{
    return (rb_ivar_get(self, rb_intern("report")));
}

#summaryObject



58
59
60
61
# File 'ext/c_frida/Crash.c', line 58

static VALUE Crash_summary(VALUE self)
{
    return (rb_ivar_get(self, rb_intern("summary")));
}