[RFC] convert a host address to a string

Joel Brobecker brobecker@adacore.com
Sat Jan 10 07:12:00 GMT 2009


> 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



More information about the Gdb-patches mailing list