This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [wanted] Test of GDB modifying a value in a register
- From: Michael Snyder <msnyder at redhat dot com>
- To: Andrew Cagney <ac131313 at redhat dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Mon, 04 Nov 2002 16:00:15 -0800
- Subject: Re: [wanted] Test of GDB modifying a value in a register
- Organization: Red Hat, Inc.
- References: <3DC31374.5060902@redhat.com>
Andrew Cagney wrote:
>
> Hello,
>
> In doing a further cleanup of the frame code, I discovered that the
> current testsuite isn't testing the codepaths that write a value in a
> register.
>
> That is, things like:
>
> (gdb) set $pc = 10
> register int i;
> (gdb) set i = 10;
>
> Anyone interested in comming up with, or have a test case?
Well, $pc is the only one I can think of that we can count on
being defined on all targets -- and based on some past conversations
with you, I'm wondering if even that is a safe assumption?
Basically, we have almost no tests of register functionality,
and yes it would be good if we did.