1 Star 0 Fork 0

fastdgiot / libdwarf-addr2line

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

libdwarf-addr2line

This is an example of accessing a file name and line number based on a code address in an object file. A build will take a little fiddling with the simple Makefile. See the comments in the Makefile.

I hope to get in touch with the original author (github name Crablicious) by email, but have been unable to make contact so far (as of 11 December 2021).

The master branch requires latest libdwarf, which is currently libdwarf-0.3.1.

Branch v20210528 requires libdwarf-20210528, the final pre-semantic-versioning libdwarf, a version in many Linux distributions.

The batch no-batch options have very different code paths.

The program has the same name as the GNU binutils-gdb addr2line, but neither the options nor the source code have any similarity whatever to the GNU addr2line.

Usage

addr2line [ -h] [-a] [-e <objectpath>] [-b] [-n] [address] ...
where
    -a --addresses  Turns on printing of address before
        the source line text
    -e --exe  <path> The the path to the object file to read.
        Path defaults to "a.out"
    -b --force-batch The CU address ranges will be looked
        up once at the start and the generated table used.
    -n --force-no-batch The addresses are looked up
        independently for each address present.
        In certain cases the no-batch will be overridden
        and batching used.
    -h --help  Prints a help message and stops.
if no addresses present the program reads STDIN, expecting
a list of addresses there. 

Here is an example:

q3 619: ./addr2line -a -e  addr2line 0x2470 0x33b0
0x0000000000002470
/home/davea/dwarf/libdwarf-addr2line/addr2line.c:479
0x00000000000033b0
/home/davea/dwarf/libdwarf-addr2line/addr2line.c:40

echo 0x2470 >junk
./addr2line -a -e  addr2line <junk
0x0000000000002470
/home/davea/dwarf/libdwarf-addr2line/addr2line.c:479

空文件

简介

libdwarf-addr2line.git 展开 收起
Erlang 等 3 种语言
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Erlang
1
https://gitee.com/fastdgiot/libdwarf-addr2line.git
git@gitee.com:fastdgiot/libdwarf-addr2line.git
fastdgiot
libdwarf-addr2line
libdwarf-addr2line
master

搜索帮助