On Sep 26, 9:54 pm, Paul Pluzhnikov <[EMAIL PROTECTED]>
wrote:
> mathieu <[EMAIL PROTECTED]> writes:
> >   I think I misunderstood how to set hardware breakpoint in gdb. I
> > would usually do:
>
> > gdb> hb *((int*)0x0123456)
>
> This is exactly the same as 'break *0x0123456' on platforms that
> have hardware breakpoint instruction (which is all common platforms
> for general computing).
>
> You are setting a breakpoint that will fire when instruction at
> location 0x123456 executes. Since there is no instruction there,
> the breakpoint never fires.
>
> >   For some reason this is not working anymore:
>
> It never did. Try 'watch *0x123456' instead.

Thanks !

_______________________________________________
help-gplusplus mailing list
help-gplusplus@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to