This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] remote.c: adjust Z packet addr using BREAKPOINT_FROM_PC
- To: jtc at redback dot com
- Subject: Re: [RFA] remote.c: adjust Z packet addr using BREAKPOINT_FROM_PC
- From: Nick Duffek <nsd at redhat dot com>
- Date: Tue, 9 Jan 2001 14:50:37 -0500
- CC: gdb-patches at sources dot redhat dot com
- References: <5mn1d0wnz4.fsf@jtc.redback.com>
On 9-Jan-2001, J . T . Conklin wrote:
>Yes, if address swizzling is necessary, I think it should be done before
>the vector functions are called.
I'll check into that.
>A gdb for a given arch may support several targets. I'm still somewhat
>concerned that address swizzling for one target may not be appropriate
>for another. I'm probably just being paranoid.
I'm a bit paranoid about prepending BREAKPOINT_FROM_PC to
target_insert_breakpoint, but it does seem like the right approach. I'll
bet that only a few archs use BREAKPOINT_FROM_PC to change the address, so
it may be possible to be reasonably sure that no breakage would result.
Patch withdrawn,
Nick