This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


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

Re: (patch) hpjyg22: misc. 32x64 and minor changes


Michael Snyder wrote:
> 
> Andrew Cagney wrote:
> 
> > Perhaps paddr() should be used - that returns a string based on
> > TARGET_PTR_BIT.  Hmm, here thougy, you're manipulating values from the
> > ELF object file format )??).  Perhaphs something object-file related is
> > needed?
> 
> I could have sworn there used to be a function called
> "bfd_print_vma", but now I can't find it.  Maybe it was
> replaced or renamed?
> 
> Anyway I believe there is (or was) a function to print
> a bfd_vma.

There is.  It formats the address according to what BFD thinks it should
look like.

I think we've got the cases:

	o	target address (CORE_ADDR)
		One GDB plan was to add segments to GDB's
		target address space.

	o	target C-lang ``void*''

	o	object file address

The paddr() family (I fixed functions that were already there) format an
address according to TARGET_PTR_BIT.

enjoy,
	Andrew

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