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: [PATCH] libdw: Add new function dwarf_getlocations.


On Wed, 04 Sep 2013 16:30:19 +0200, Mark Wielaard wrote:
> Good point, I missed that. It is always good to do less work if at all
> possible. I implemented it slightly differently from your suggestion,
> but I believe it addresses your point. See new patch attached.

This makes address == 0 a special case.

I do not have an overview how elfutils handles that but at least GDB tries to
handle address 0 as general valid address as it is a normal code location on
many embedded targets.  (Although for example GNU/Linux-targeted code does not
handle address 0 correctly as it is not much a problem for GNU/Linux targets.)


Jan

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