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
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.)