This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: addr2line ADDR by default takes decimal radix
- From: Nick Clifton <nickc at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Thu, 17 Sep 2009 11:45:03 +0100
- Subject: Re: addr2line ADDR by default takes decimal radix
Hi Rakesh,
> Just a small trivial query: addr2line considers address as decimal by
> default unless one adds 0x . Usually we have address in hexadecimal.
> Does it makes sense to make hexadecimal default (so that one does not
> need an extra 0x) ?
Short answer: No.
Long answer: No, because:
a. It would violate the POSIX standard.
b. The current behaviour is the expected behaviour for addr2line.
Changing it would confuse people who are used to the current
behaviour. Plus if a user did want to provide a decimal address
how would they indicate that ?
Cheers
Nick