This is the mail archive of the
sid@sources.redhat.com
mailing list for the SID project.
Re: Possible remote.c patch for Z-packet breakpoints + Harvard + SID
- To: nsd at redhat dot com
- Subject: Re: Possible remote.c patch for Z-packet breakpoints + Harvard + SID
- From: Mark Salter <msalter at redhat dot com>
- Date: Mon, 16 Jul 2001 19:42:30 -0400
- CC: fche at redhat dot com, cagney at redhat dot com, jtc at redback dot com, sid at sources dot redhat dot com, gdb-patches at cygnus dot com
- References: <o5pub0sqqy.fsf@toenail.toronto.redhat.com> <200107161931.f6GJVV719853@rtl.cygnus.com>
>>>>> Nick Duffek writes:
> Executive summary for the lists I've added to this thread: Z-packet
> breakpoints don't work with SID on Harvard architectures.
> On 16-Jul-2001, I wrote:
>> When a Harvard-architecture GDB sends an address to SID, the address has a
>> high bit set indicating whether the address space, e.g. instruction
>> vs. data.
FWIW, I recently had to deal with this in RedBoot. Since the RedBoot stub
already had to deal with differentiating code and data addresses, I just
used the same mechanism to convert from a "gdb" address to a hw code or
data address when decoding the Z packet before the __set_breakpoint() is
called.
--Mark