This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: [PATCH] libdw: Add new function dwarf_getlocations.
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Wed, 04 Sep 2013 16:42:31 +0200
- Subject: 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