This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Watchpoint on an unloaded shared library(1)
> This does work for me, except one duplication of the codes (that you
> may have noticed already):
>
> static void
> do_enable_breakpoint (struct breakpoint *bpt, enum bpdisp disposition)
> {
> int target_resources_ok, other_type_used;
> struct value *mark;
>
> if (bpt->type == bp_hardware_breakpoint)
Not quite: As you can see, this part of the code deals with hardware
*breakpoints*, not watchpoints. The code is slightly different because:
> i = hw_breakpoint_used_count ();
We get the current count of hw breakpoints currently used.
> That should be done in update_watchpoint.
Except that update_watchpoint only deals with watchpoints :)
> I would try to address incapabilities on PPC after those codes are
> committed. Thank you for taking care of it!
Er, ... Can you send a patch? I was merely suggesting a different
approach that I hoped would work.
Thank you!
--
Joel