This is the mail archive of the gdb@sources.redhat.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: Print 64bit address from gdb


On Fri, Aug 10, 2001 at 10:41:31AM -0700, Daniel Jacobowitz wrote:
> > > 
> > > Yes, that's a problem.  Perhaps you can use your conveniently introduced
> > > *printf_vma functions for this?
> > 
> > It should use 
> > 
> > {"inner block (%s-%s) not inside outer block (%s-%s)", 0, 0};
> > 
> > and use
> > 
> > sprintf_vma/bfd_sprintf_vma. bfd_sprintf_vma is better for user and
> > sprintf_vma may be better for developer. I prefer bfd_sprintf_vma.
> 
> I assume that bfd_sprintf_vma is the one which will truncate to 32bit
> in a 32bit BFD?

No, it truncates to 32bit for 32bit ELF.

> 
> If so, please use sprintf_vma instead.  These are debugging error
> messages; they are primarily of interest to the developers.

Either way is fine with me.


H.J.


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