* [wanted] Test of GDB modifying a value in a register
@ 2002-11-01 15:51 Andrew Cagney
2002-11-04 16:00 ` Michael Snyder
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Cagney @ 2002-11-01 15:51 UTC (permalink / raw)
To: gdb-patches
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?
Andrew
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [wanted] Test of GDB modifying a value in a register
2002-11-01 15:51 [wanted] Test of GDB modifying a value in a register Andrew Cagney
@ 2002-11-04 16:00 ` Michael Snyder
2002-11-04 16:25 ` Andrew Cagney
0 siblings, 1 reply; 3+ messages in thread
From: Michael Snyder @ 2002-11-04 16:00 UTC (permalink / raw)
To: Andrew Cagney; +Cc: gdb-patches
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [wanted] Test of GDB modifying a value in a register
2002-11-04 16:00 ` Michael Snyder
@ 2002-11-04 16:25 ` Andrew Cagney
0 siblings, 0 replies; 3+ messages in thread
From: Andrew Cagney @ 2002-11-04 16:25 UTC (permalink / raw)
To: Michael Snyder; +Cc: gdb-patches
> 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.
Already done :-) GCC, at least takes sufficient notice of:
>> register int i;
>> (gdb) set i = 10;
for it to be possible to come up with useful tests (sufficiently useful
to find wierd bugs! :-). See:
http://sources.redhat.com/ml/gdb-patches/2002-11/msg00019.html
Andrew
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-11-05 0:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-01 15:51 [wanted] Test of GDB modifying a value in a register Andrew Cagney
2002-11-04 16:00 ` Michael Snyder
2002-11-04 16:25 ` Andrew Cagney
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox