* addr2line.c (long_options): Add new option 'section'.
authorEric Botcazou <ebotcazou@libertysurf.fr>
Wed, 5 Apr 2006 16:12:01 +0000 (16:12 +0000)
committerEric Botcazou <ebotcazou@libertysurf.fr>
Wed, 5 Apr 2006 16:12:01 +0000 (16:12 +0000)
commitc5f8c3881a54348a45b3bb27fd3251e00177859b
tree81180e4bc51b572613c99f30f3a4347fd1209d6b
parentdfcffada0bf3f6dfd1ba336fb1647694c55d4f22
* addr2line.c (long_options): Add new option 'section'.
(usage): Document new -j/--section option.
(find_offset_in_section): New function.
(translate_addresses): Add 'section' parameter.
If it is non-null, call find_offset_in_section on it.
(process_file): Add 'section_name' parameter.
If it is non-null, look for the section in the BFD object.
Pass the section to translate_addresses.
(main): Handle new -j option.
Pass the section name to process_file.
* doc/binutils.texi (addr2line): Document new -j/--section option.
binutils/ChangeLog
binutils/addr2line.c
binutils/doc/binutils.texi