Add sr_java_frame_append

Signed-off-by: Martin Milata <mmilata@redhat.com>
Signed-off-by: Richard Marko <rmarko@redhat.com>
Helper functions for json deserialization

Written in a way to repeat as little code as possible when used:
- when a key is not present in an JSON object, just silently go on,
  validation of required items will be done separately.
- the functions set error_message variable to the description of the
  error when they fail; macros are provided that pass the error_message
  argument implicitly

Signed-off-by: Martin Milata <mmilata@redhat.com>
Signed-off-by: Richard Marko <rmarko@redhat.com>
Implement JSON deserialization for reports

Most of the changeset implements deserialization for all stacktrace
types (except GDB). The core stacktrace deserialization was rewritten to
use the same functions as other types (making it somewhat shorter).

Signed-off-by: Martin Milata <mmilata@redhat.com>
Signed-off-by: Richard Marko <rmarko@redhat.com>
Type-agnostic JSON deserialization

Signed-off-by: Martin Milata <mmilata@redhat.com>
Signed-off-by: Richard Marko <rmarko@redhat.com>
python: add version attribute to Kerneloops object

Signed-off-by: Martin Milata <mmilata@redhat.com>
Signed-off-by: Richard Marko <rmarko@redhat.com>
python: expose from_json for stacktraces

Class method from_json is provided to provide additional means of
creating stacktrace objects.

Related to #92, it still remains to implement #86 in order to close it.

Signed-off-by: Martin Milata <mmilata@redhat.com>
Signed-off-by: Richard Marko <rmarko@redhat.com>
tests for json deserialization of stacktraces

Signed-off-by: Martin Milata <mmilata@redhat.com>
Signed-off-by: Richard Marko <rmarko@redhat.com>
python: treat UINT64_MAX as None

Note: this patch depends on "[SATYR PATCH 7/7] tests for json
deserialization of stacktraces" as it modifies one of the tests.

-->8-->8-->8-->8-->8-->8-->8-->8-->8-->8-->8-->8-->8-->8-->8-->8-->8--
Some structures (namely struct sr_core_frame) use (uint64_t)-1 to denote
unknown value. This is difficult to compare with in python, so this
patch introduces translation of this value to None in uint64 accessor
functions.

Signed-off-by: Martin Milata <mmilata@redhat.com>
Signed-off-by: Richard Marko <rmarko@redhat.com>