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: [gdbserver 2/2] x86-linux Z0 support, and support multiple breakpoints at the same address.


On Friday 26 March 2010 20:09:28, Pedro Alves wrote:
> So, I suggest we go with this patch, and try to come up
> with something clever further down the road, when we
> have a bit more experience with this, and if we find it's
> actually needed.

I've checked this in as well.

> 2010-03-26  Pedro Alves  <pedro@codesourcery.com>
> 
>         gdb/gdbserver/
>         * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
>         (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
>         of another, then delete the previous, and validate all
>         breakpoints.
>         (validate_inserted_breakpoint): New.
>         (delete_disabled_breakpoints): New.
>         (validate_breakpoints): New.
>         (check_mem_read): Validate breakpoints before trusting their
>         shadow.  Delete disabled breakpoints.
>         (check_mem_write): Validate breakpoints before trusting they
>         should be inserted.  Delete disabled breakpoints.
>         * mem-break.h (validate_breakpoints):
>         * server.c (handle_query): Validate breakpoints when we see a
>         qSymbol query.

-- 
Pedro Alves


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