llvm-addr2line: assume addresses on the command line are hexadecimal rather than...
authorRichard Smith <richard@metafoo.co.uk>
Fri, 24 Jan 2020 00:25:30 +0000 (16:25 -0800)
committerRichard Smith <richard@metafoo.co.uk>
Thu, 16 Apr 2020 23:16:21 +0000 (16:16 -0700)
commit9a709dd2bb452883e1f1cf626d60c3f03801a9f3
treec9f4bd0717290892940e9f9af39d6e7d70bdca2f
parent80022ae2b58e7c2d51e7705d39a8ab546ac7de85
llvm-addr2line: assume addresses on the command line are hexadecimal rather than attempting to guess the base based on the form of the number.

Summary:
This matches the behavior of GNU addr2line. We previously treated
hexadecimal addresses as binary if they started with 0b, otherwise as
octal if they started with 0, otherwise as decimal.

This only affects llvm-addr2line; the behavior of llvm-symbolize is
unaffected.

Reviewers: ikudrin, rupprecht, jhenderson

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D73306
llvm/docs/CommandGuide/llvm-addr2line.rst
llvm/test/lit.cfg.py
llvm/test/tools/llvm-symbolizer/input-base.test [new file with mode: 0644]
llvm/tools/llvm-symbolizer/llvm-symbolizer.cpp