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: [RFA] remote.c: adjust Z packet addr using BREAKPOINT_FROM_PC


I'm not exactly sure what you are trying to do here, but Kevin Buettner
posted a patch (that never got committed) that added a new architecture
feature that explicitly adjusted a breakpoint address (if necessary). 
You might look at it for ideas if nothing else.  The nice thing about it
is that the address "swizzling" is very explicit.  Here's a link:

<http://sources.redhat.com/ml/gdb-patches/2000-06/msg00257.html>

I hope this helps.

Nick Duffek wrote:
> 
> 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

-- 
David Smith
dsmith@redhat.com
Red Hat, Inc.
http://www.redhat.com
256.704.9222 (direct)
256.837.3839 (fax)

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