From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cagney To: Michael Snyder , Jim blandy Cc: gdb-patches@sources.redhat.com Subject: Re: [RFC/RFA] gdb extension for Harvard architectures Date: Tue, 02 Oct 2001 19:27:00 -0000 Message-id: <3BBA7751.8070807@cygnus.com> References: <3BB4D843.A92818B9@cygnus.com> X-SW-Source: 2001-10/msg00045.html 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