This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]