Re: [RFC/RFA] gdb extension for Harvard architectures

Andrew Cagney
2001-10-02T19:27:00Z

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