From: Jim Blandy <jimb@redhat.com>
To: gdb-patches@sources.redhat.com
Subject: Re: RFA: assert that target_fetch_registers did its job
Date: Wed, 04 Aug 2004 17:51:00 -0000 [thread overview]
Message-ID: <vt2k6wedc9s.fsf@zenia.home> (raw)
In-Reply-To: <20040724004433.GA15591@nevyn.them.org>
I've committed the following:
2004-07-21 Jim Blandy <jimb@redhat.com>
* regcache.c (regcache_raw_read): Assert that, after calling
target_fetch_registers, the register we're reading is cached.
Index: gdb/regcache.c
===================================================================
RCS file: /cvs/src/src/gdb/regcache.c,v
retrieving revision 1.121
diff -c -p -r1.121 regcache.c
*** gdb/regcache.c 2 Aug 2004 21:58:44 -0000 1.121
--- gdb/regcache.c 2 Aug 2004 23:18:56 -0000
*************** regcache_raw_read (struct regcache *regc
*** 614,619 ****
--- 614,620 ----
}
if (!register_cached (regnum))
target_fetch_registers (regnum);
+ gdb_assert (register_cached (regnum));
}
/* Copy the value directly into the register cache. */
memcpy (buf, register_buffer (regcache, regnum),
next prev parent reply other threads:[~2004-08-04 17:51 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-23 23:00 Jim Blandy
2004-07-24 0:45 ` Daniel Jacobowitz
2004-08-03 14:23 ` Andrew Cagney
2004-08-07 18:42 ` Daniel Jacobowitz
2004-08-07 18:54 ` Andrew Cagney
2004-08-04 17:51 ` Jim Blandy [this message]
2004-08-06 20:50 ` Nathan J. Williams
2004-08-06 23:43 ` Jim Blandy
2004-08-07 1:47 ` Ian Lance Taylor
2004-08-07 16:13 ` Andrew Cagney
2004-08-07 18:31 ` Jim Blandy
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=vt2k6wedc9s.fsf@zenia.home \
--to=jimb@redhat.com \
--cc=gdb-patches@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