[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting hardware breakpoint in gdb (g++-4.2)

From: mathieu
Subject: Re: Setting hardware breakpoint in gdb (g++-4.2)
Date: Thu, 27 Sep 2007 12:11:46 -0000
User-agent: G2/1.0

On Sep 26, 9:54 pm, Paul Pluzhnikov <>
> mathieu <> 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 !

reply via email to

[Prev in Thread] Current Thread [Next in Thread]