From: Mo DeJong <mdejong@cygnus.com>
To: insight@sources.redhat.com
Subject: Something is very wrong with watchpoints
Date: Thu, 12 Oct 2000 16:23:00 -0000 [thread overview]
Message-ID: <Pine.SOL.3.91.1001012162239.10110K-100000@cse.cygnus.com> (raw)
I tried to set a hardware watchpoint in insight, it worked but when
I ran the program the GUI stopped responding. It would redraw itself
about once every 5 minutes. Has anyone else run into this?
I am using Linux (Red Hat 6.2) on x86.
Here is a trivial little example that shows how to reproduce
the problem. Just compile this with:
% gcc -g -o watch watch.c
And type the gdb command into the console, note how the GUI
does not redraw after you type continue.
#include <unistd.h>
int main() {
int i,j;
for (i=0, j=0; i < 100000000 ; i++) {
if (i%1000 == 0)
j++;
}
}
/*
start the program and set a breakpoint on the for loop line
(gdb) break 5
(gdb) run
now set a watchpoint at the address of the j variable
(gdb) print &j
(gdb) watch (the hex addr that was just printed)
(gdb) cont
*/
thanks
Mo DeJong
Red Hat Inc
next reply other threads:[~2000-10-12 16:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-10-12 16:23 Mo DeJong [this message]
2000-10-12 16:37 ` Fernando Nasser
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.SOL.3.91.1001012162239.10110K-100000@cse.cygnus.com \
--to=mdejong@cygnus.com \
--cc=insight@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).