help-gplusplus
[Top][All Lists]
Advanced

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

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


From: Paul Pluzhnikov
Subject: Re: Setting hardware breakpoint in gdb (g++-4.2)
Date: Wed, 26 Sep 2007 12:54:18 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, linux)

mathieu <mathieu.malaterre@gmail.com> 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.

Cheers,
-- 
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.


reply via email to

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