2009/1/10 Joel Brobecker : >> I think it is a sub-optimal solution to have just support for Vista64, but >> not for XP. > > To me, the question is not about whether to support XP64 or not. > I agree it would be nice to support XP64 as well. It's about who > has the time and energy to drive the discussion to find an accepted > solution. I decided to drop XP64, because it's not in the list of > things I'm interested in while I'm sensing that it's going to take > a bit of effort to reach a consensus. You already made a very nice > contribution in the coff/pe reader, why not send another patch to > further improve host_address_to_string for XP64? > >> On a second thought, I remembered, that bfd does things right ;) There >> is the macro sprintf_vma in bfd.h, which handles things pretty well >> and can be used here in utils.c, too. > > The problem with that routine is that it is designed to print target > addresses, not host addresses. > > -- > Joel > ok, so I sugget the following patch instead. It is able to generate addresses for XP64 without the use of any vendor specific printf formatters, and uses for targets where sizeof(long) == sizeof(void*) the long variant. Cheers, Kai -- | (\_/) This is Bunny. Copy and paste | (='.'=) Bunny into your signature to help | (")_(") him gain world domination