This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA/RFC 3] Remove hardware break and watchpoints at program exit.
Pierre Muller <muller@cerbere.u-strasbg.fr> writes:
> After the previous discussion about the
> hardware watch and breakpoint removal
> about the debuggee exited. I slightly modifed my patch
> by adding a test to avoid calling ptrace
> in i386-linux-nat.c, i386bsd-nat.c and x86-64-linux-nat.c
> i386_linux_dr_set, i386bsd_dr_set and x86_64_linux_dr_set functions
> if taget_has_execution is 0.
That should not be necessary. Those functions shouldn't be called
when there is no debuggee. I suspect that there is something wrong
with the hardware breakpoint/watchpoint implementation at a much
higher level.
Mark