This is the mail archive of the gdb-patches@sourceware.org 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]
Other format: [Raw text]

Re: [PATCH 0/9 V3] Use reinsert breakpoint for vCont;s


I'm behind on this whole discussion, but, the comment below
caught my attention:

On 11/25/2016 01:12 PM, Antoine Tremblay wrote:

> In fact thinking more about this we may need to remove all breakpoints
> at any pc since get_next_pc may read memory in other places then the
> current pc to deal with atomic sequences for example or for other
> instructions too.
> 
> If it reads a breakpoint in memory there it may come-up with an invalid
> next pc.

How can that happen, given gdbserver's memory read routine takes
share to hide breakpoint breakpoints?

I.e., read_inferior_memory -> check_mem_read.

Thanks,
Pedro Alves


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