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: path for gdb/dwarf2read.c, support 16-bit targets in dwarf-2


Stephane Carrez wrote:

> 
> > > Is there any reason why s->arch_size isn't 16 in your case?
> >
> 
> Because I thought it was related to the ELF format (32/64). I also looked
> at the bfd/cpu-d10v.c that uses ELF32 and 16-bit addresses. It also looked
> to me that this was quite coherent: define the ELF format in 'elf_size_info'
> and define the CPU addresses in 'bfd_arch_info'.

FYI, the d10v isn't that simple and very unique.  While the hardware PC
appears to be 16 bits it's actually 18 plus implied segment information
(the bottom two bits are zero). It was all mapped onto a 32 bit address
for convenience.

	Andrew

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