Here's my second attempt. Feedback is very much welcome. The first patch is the
same as in the previous series.
Martin
Martin Milata (9):
Refactor optimized GDB thread generation
Short textual representation of frames
java: add sr_java_find_crash_thread stub
Add a type member to satyr structures
Add type-agnostic API
Tests for the type-agnostic functions
Expose to_short_text method in python + tests
Generic version of thread frame count
abrt: report type from analyzer value
lib/Makefile.am | 11 ++-
lib/abrt.c | 25 +++--
lib/abrt.h | 4 +
lib/core_frame.c | 21 +++++
lib/core_frame.h | 10 ++
lib/core_stacktrace.c | 1 +
lib/core_stacktrace.h | 3 +
lib/core_thread.c | 15 +--
lib/core_thread.h | 9 +-
lib/distance.c | 46 +--------
lib/frame.c | 90 ++++++++++++++++++
lib/frame.h | 64 +++++++++++++
lib/gdb_frame.c | 3 +-
lib/gdb_frame.h | 3 +
lib/gdb_stacktrace.c | 65 +++----------
lib/gdb_stacktrace.h | 23 ++---
lib/gdb_thread.c | 82 ++++++++++++++---
lib/gdb_thread.h | 24 +++--
lib/java_frame.c | 1 +
lib/java_frame.h | 3 +
lib/java_stacktrace.c | 9 ++
lib/java_stacktrace.h | 6 ++
lib/java_thread.c | 15 +--
lib/java_thread.h | 9 +-
lib/koops_frame.c | 13 +++
lib/koops_frame.h | 12 +++
lib/koops_stacktrace.c | 14 +--
lib/koops_stacktrace.h | 9 +-
lib/metrics.c | 13 +--
lib/python_frame.c | 24 +++++
lib/python_frame.h | 11 +++
lib/python_stacktrace.c | 16 +---
lib/python_stacktrace.h | 9 +-
lib/report.c | 1 +
lib/report.h | 10 +-
lib/report_type.h | 44 +++++++++
lib/stacktrace.c | 210 ++++++++++++++++++++++++++++++++++++++++++
lib/stacktrace.h | 87 +++++++++++++++++
lib/thread.c | 155 +++++++++++++++++++++++++++++++
lib/thread.h | 73 +++++++++++++++
lib/utils.h | 12 +++
python/py_gdb_stacktrace.c | 33 +++----
python/py_gdb_stacktrace.h | 2 +-
python/py_java_stacktrace.c | 28 ++++++
python/py_java_stacktrace.h | 1 +
python/py_koops_stacktrace.c | 28 ++++++
python/py_koops_stacktrace.h | 1 +
python/py_python_stacktrace.c | 30 +++++-
python/py_python_stacktrace.h | 1 +
tests/core_frame.at | 36 ++++++++
tests/core_stacktrace.at | 39 ++++++--
tests/core_thread.at | 42 +++++++++
tests/gdb_stacktrace.at | 8 +-
tests/java_frame.at | 6 ++
tests/java_thread.at | 3 +
tests/koops_stacktrace.at | 14 ++-
tests/python/gdb.py | 11 +++
tests/python/java.py | 13 +++
tests/python/koops.py | 11 +++
tests/python/python.py | 10 ++
60 files changed, 1306 insertions(+), 266 deletions(-)
create mode 100644 lib/frame.c
create mode 100644 lib/frame.h
create mode 100644 lib/report_type.h
create mode 100644 lib/stacktrace.c
create mode 100644 lib/stacktrace.h
create mode 100644 lib/thread.c
create mode 100644 lib/thread.h
--
1.7.11.7