|
satyr 0.43
|
Python stack trace structure and related algorithms. More...
Go to the source code of this file.
Data Structures | |
| struct | sr_python_stacktrace |
Functions | |
| struct sr_python_stacktrace * | sr_python_stacktrace_new (void) |
| void | sr_python_stacktrace_init (struct sr_python_stacktrace *stacktrace) |
| void | sr_python_stacktrace_free (struct sr_python_stacktrace *stacktrace) |
| struct sr_python_stacktrace * | sr_python_stacktrace_dup (struct sr_python_stacktrace *stacktrace) |
| struct sr_python_stacktrace * | sr_python_stacktrace_parse (const char **input, struct sr_location *location) |
| char * | sr_python_stacktrace_get_reason (struct sr_python_stacktrace *stacktrace) |
| char * | sr_python_stacktrace_to_json (struct sr_python_stacktrace *stacktrace) |
| struct sr_python_stacktrace * | sr_python_stacktrace_from_json (json_object *root, char **error_message) |
Python stack trace structure and related algorithms.
Definition in file python/stacktrace.h.
| struct sr_python_stacktrace * sr_python_stacktrace_dup | ( | struct sr_python_stacktrace * | stacktrace | ) |
Creates a duplicate of the stacktrace.
| stacktrace | The stacktrace to be copied. It's not modified by this function. |
| void sr_python_stacktrace_free | ( | struct sr_python_stacktrace * | stacktrace | ) |
Releases the memory held by the stacktrace and its frames.
| stacktrace | If the stacktrace is NULL, no operation is performed. |
| struct sr_python_stacktrace * sr_python_stacktrace_from_json | ( | json_object * | root, |
| char ** | error_message ) |
Deserializes stacktrace from JSON representation.
| root | JSON value to be deserialized. |
| error_message | On error, *error_message will contain the description of the error. |
| char * sr_python_stacktrace_get_reason | ( | struct sr_python_stacktrace * | stacktrace | ) |
Returns brief, human-readable explanation of the stacktrace.
| void sr_python_stacktrace_init | ( | struct sr_python_stacktrace * | stacktrace | ) |
Initializes all members of the stacktrace structure to their default values. No memory is released, members are simply overwritten. This is useful for initializing a stacktrace structure placed on the stack.
| struct sr_python_stacktrace * sr_python_stacktrace_new | ( | void | ) |
Creates and initializes a new stacktrace structure.
| struct sr_python_stacktrace * sr_python_stacktrace_parse | ( | const char ** | input, |
| struct sr_location * | location ) |
Parses a textual Python stacktrace and puts it into a structure. If parsing fails, the input parameter is not changed and NULL is returned.
| input | Pointer to the string with the Python stack trace. If this function returns a non-NULL value, the input pointer is modified to point after the stacktrace that was just parsed. |
| char * sr_python_stacktrace_to_json | ( | struct sr_python_stacktrace * | stacktrace | ) |
Serializes stacktrace to string.