particle-iot/firmware-address2line

Name: firmware-address2line

Owner: Particle

Description: null

Forked from: avtolstoy/addr2line

Created: 2017-10-19 20:41:09.0

Updated: 2017-10-19 20:41:30.0

Pushed: 2018-01-03 18:27:09.0

Homepage: null

Size: 17

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Usage
Class instance:
t Addr2Line = require('addr2line').Addr2Line;

resolver = new Addr2Line(['/path/to/bin1.elf', '/path/to/bin2.elf']);
lver.resolve('0x123456').then((res) => {
nsole.log(res);

Convenient wrapper
t addr2line = require('addr2line').addr2line;

resolver = addr2line(['/path/to/bin1.elf', '/path/to/bin2.elf'], '0x123456').then((res) => {
nsole.log(res);

Options
t Addr2Line = require('addr2line').Addr2Line;

t opts = {
 addr2line tool binary name
n: 'addr2line',
 addr2line tool prefix
 The resulting binary name is a concatenation of prefix and bin
 e.g. {bin: 'addr2line', prefix: 'arm-none-eabi-'} -> 'arm-none-eabi-addr2line'
efix: '',
 Unwind inlined functions
lines: true,
 Strip path from filenames
senames: false,
 Resolve functions
nctions: true,
 Demange functions
mangle: true


resolver = new Addr2Line(['/path/to/bin1.elf', '/path/to/bin2.elf'], opts);
lver.resolve('0x123456').then((res) => {
nsole.log(res);


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.