This is the mail archive of the gdb-patches@sourceware.cygnus.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: handle hardware breakpoints in overlays


>>>>> "Michael" == Michael Snyder <msnyder@cygnus.com> writes:
Michael> No, but if you think about the way overlays work
Michael> (or can be expected to work in at least some implementations), 
Michael> the code is going to be copied from the LMA address to the
Michael> VMA address by some software agent, without the debugger's
Michael> knowledge or participation.

I assumed that GDB had to be notified on every overlay switch, since
the overlay sections may not be in the address space of the processor
(it might be loaded from some external device, etc).  If this is not
the case, I think we can put this patch on the back burner, since hw
breakpoints will not be inserted and/or removed as overlays are
swapped.  

Is there any mechanism for the overlay manager and GDB to cooperate?
Without it, I can't see how overlay breakpoints can work unless the
LMA is in writable physical memory.

        --jtc

-- 
J.T. Conklin
RedBack Networks

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