[prev in list] [next in list] [prev in thread] [next in thread] 

List:       hpux-devtools
Subject:    Re: HPUX-DEVTOOLS: GDB watchpoints
From:       Dan Schmidt <dgsa () uswest ! net>
Date:       2000-05-28 16:37:31
[Download RAW message or body]

Michael Ehrig wrote:

> GDB Gurus,
>
> I am looking for the correct syntax to set a watchpoint on a memory region. The
> 'dde' equivalent would be:
> (e.g. watchpoint -from <addr> -to <addr+7> -hw -bits 64 -float)
> This sets a hardware breakpoint on float variable. I can't find the equivalent
> command in gdb. I can't use the variable name since that name is unknown (a Cray
> pointer in f90).
>
> Any ideas?

I'm not sure how to watch a range of addresses but you can watch a 64 bit address
with
"watch *(char **)0xaddr".  In general it is "watch expr".


--
Sincerely,
Dan Schmidt. DGSA Consulting
  phone: 435-770-1119
  email: dgsa@uswest.net (NEW: was dschmidt@cache.net)
  email: dschmidt@cup.hp.com


[Attachment #3 (text/html)]

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Michael Ehrig wrote:
<blockquote TYPE=CITE>GDB Gurus,
<p>I am looking for the correct syntax to set a watchpoint on a memory
region. The
<br>'dde' equivalent would be:
<br>(e.g. watchpoint -from &lt;addr> -to &lt;addr+7> -hw -bits 64 -float)
<br>This sets a hardware breakpoint on float variable. I can't find the
equivalent
<br>command in gdb. I can't use the variable name since that name is unknown
(a Cray
<br>pointer in f90).
<p>Any ideas?</blockquote>
I'm not sure how to watch a range of addresses but you can watch a 64 bit
address with
<br>"watch *(char **)0xaddr".&nbsp; In general it is "watch <i>expr</i>".
<br>&nbsp;
<p>--
<br>Sincerely,
<br>Dan Schmidt. DGSA Consulting
<br>&nbsp; phone: 435-770-1119
<br>&nbsp; email: dgsa@uswest.net (NEW: was dschmidt@cache.net)
<br>&nbsp; email: dschmidt@cup.hp.com
<br>&nbsp;</html>

 _________________________________________________________________
 To leave this mailing list, send mail to majordomo@cxx.cup.hp.com
    with the message UNSUBSCRIBE hpux-devtools
 _________________________________________________________________


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic