| Method | What it does |
| Tombstone.parse(text) | { preamble, records }, one record per banner, or { problem: { type, message } } with type "binary" (a protobuf tombstone) or "not-tombstone". A record has header (fingerprint, revision, abi, timestamp, uptime, cmdline), threads, crashed (the thread that got the signal), signal ({ number, name, code, codeName, faultAddress, fromPid, fromUid }), causes, abortMessage, taggedAddress, pacKeys, memoryNear ([{ register, path, rows: [{ address, words, ascii }] }]), memoryMap ({ count, entries, gaps }), openFiles ([{ fd, path, owner }]), logs ([{ channel, lines }]) and rawTail (lines not recognised). |
| thread, frame, mapping | Thread: { pid, tid, name, processName, uid, crashed, registers: [{ name, value }], totalFrames, frames, notes }. Frame: { number, pc, path, symbol, symbolOffset, buildId, deleted, fileOffset, origin }. Mapping: { index, low, high, permissions, offset, size, name, buildId, loadBias, deleted, fault, origin }, addresses and sizes as BigInts. origin is "app", "injected", "system", "anon", "other" or "unknown". |
| record lookups | sortedMappings (by address), firstMappingByName (Map path → its first mapping), references (Map path → [{ thread, frame }]), injectedPaths, faultAddress (BigInt or null). |
| Tombstone.resolveAddress(record, address) | { entry, offset }: the mapping that holds a BigInt address, or null. |
| Tombstone.frameAddress(record, frame) | The frame's absolute address: its pc (an offset into the file) plus the start of the file's first mapping, or null. |
| Tombstone.mappingForPath(record, path) | The first mapping of a file (a trailing (deleted) is ignored), or null. |
| Tombstone.backtraceText(record, thread) | The thread's backtrace as text, in debuggerd's layout. |
| Tombstone.parseFrame(text) | The text after #NN pc 0000…: { path, symbol, symbolOffset, buildId, deleted, fileOffset }, peeling the parenthesised groups from the right. |
| Tombstone.classifyPath(path) | Where a file comes from (the origin above). |
| Tombstone.parseFingerprint(text) | brand/product/device:release/id/incremental:type/tags as { raw, brand, product, device, release, buildId, incremental, buildType, tags }. |
| Tombstone.shortName(path) | The file name of a path (libc.so; for base.apk!libfoo.so, libfoo.so). |
| Tombstone.looksLikeTombstone(text) | Whether pasted text has a banner, a pid: line or a signal line. |
| Tombstone.SIGNAL_DESCRIPTIONS | A short description of each common signal (SIGSEGV, SIGABRT, SIGTRAP…). |