Provided by: manpages-ja_0.5.0.0.20221215+dfsg-1_all bug

名前

       addr2line - アドレスをファイル名と行番号に変換する

書式

       addr2line
              [-b bfdname  |  --target=bfdname]  [-C|--demangle] [-e filename | --exe=filename] [-f|--functions]
              [-s|--basenames] [-H|--help] [-V|--version] [addraddr...]

説明

       addr2line はプログラム内のアドレスをファイル名と行番号に変換する。アドレスと実行 ファイルが与えられると、
       addr2line は実行ファイルのデバッグ情報を用いて、アドレスに関連付けられているファ イル名と行番号を求める。

       実行ファイルは -e オプションを用いて指定できる。デフォルトは a.out である。

       addr2line には二つの実行モードがある。

       最初のモードでは、コマンドラインで 16 進数のアドレスを指定する。  addr2line  はそれぞれのアドレスに対して
       ファイル名と行番号を表示する。

       二つめのモードでは、  addr2line は 16 進数のアドレスを標準入力から読み込み、それぞれのアドレスに対応す る
       ファイル名と行番号を標準出力に表示する。このモードでは addr2line は動的に選択されたアドレスを変換するパイ
       プとして用いることができる。

       出力フォーマットは「ファイル名:行番号」である。各アドレスに対 応してこのペアが行ごとに表示される。 -f  オ
       プションが用いられると、「ファイル名:行番号」の行それぞれの前に  「関数名」行が置かれる。これはそのアドレ
       スが所属する関数の名前である。

       ファイル名または関数の名前が決定できない場合は、   addr2line   は代わりに二つのクエスチョンマークを表示す
       る。行番号が決定できない場合 は、 addr2line は 0 を表示する。

オプション

       -b bfdname

       --target=bfdname
              オブジェクトファイルのオブジェクトコードフォーマットを bfdname として取り扱う。

       -C

       --demangle
              低レベルのシンボル名をユーザーレベルのシンボル名にデコード (demangle) する。このときシステムによっ
              て前置されたアンダースコ アも削除される。この操作によって C++ の関数名が可読になる。

       -e filename

       --exe=filename
              アドレスを変換したい実行ファイルの名前を指定する。デフォルトのファイル は a.out である。

       -f

       --functions
              ファイル名や行番号の情報と共に関数の名前も表示する。

       -s

       --basenames
              それぞれのファイル名のベースのみを表示する (ディレクトリを表示しない)。

関連項目

       info の ` binutils ' エントリ、 The GNU Binary Utilities, Roland H. Pesch (October 1991)、

著作権

       (これは原文にはありませんが、 binutils の他のものを付記しました -- 訳者)

       Copyright (c) 1993 Free Software Foundation, Inc.

       Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice
       and this permission notice are preserved on all copies.

       Permission  is  granted  to copy and distribute modified versions of this manual under the conditions for
       verbatim copying, provided that the entire resulting derived work is distributed under  the  terms  of  a
       permission notice identical to this one.

       Permission is granted to copy and distribute translations of this manual into another language, under the
       above  conditions  for  modified  versions,  except  that  this  permission  notice  may  be  included in
       translations approved by the Free Software Foundation instead of in the original English.

Cygnus Solutions                                  27 March 1997                                     addr2line(1)