This is the mail archive of the gdb-patches@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: [RFC/RFA] gdb extension for Harvard architectures


Hmm, that d10v example made me think ...

The d10v has 16 bit code pointers.  They are mapped onto a core addr using:

	((code_ptr) << 2) | 0x01000000)

The key thing being the code pointer has a granularity of 32 bits (aka 4 
bytes).

Given the expression:

	((int32 @code *) func)[1]

I can guess what it does.  However, what about:

	((int16 @code *) func)[1]

I suspect that the proposed model would result in ``[1]'' and ``[0]'' 
being the same location.

Andrew


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