* [PATCH] Fix for miscexprs test "failure"
@ 1999-03-16 15:02 ahaas
1999-04-01 0:00 ` ahaas
1999-04-01 0:00 ` Stan Shebs
0 siblings, 2 replies; 4+ messages in thread
From: ahaas @ 1999-03-16 15:02 UTC (permalink / raw)
To: gdb-patches
Hi.
Attached is a patch which solves the single "failure" in the
'miscexprs' tests - the problem is with the test program, not
gdb.
The test script asks gdb to print out the address of character
array member in a structure. The problem is that the array is not
initialized to anything, so when printing out the value, you
get something like
$1 = 0xbfffef34 "{stuff}"
and the test expects
$1 = 0xbfffef34 ""
My solution is simple as is indicated in the patch.
Enjoy.
Art Haas
==============================
--- gdb-4.17.86/gdb/testsuite/gdb.base/miscexprs.c.orig Mon Jan 4 09:34:31 1999
+++ gdb-4.17.86/gdb/testsuite/gdb.base/miscexprs.c Tue Mar 16 16:19:22 1999
@@ -61,6 +61,7 @@
struct {
short s[400];
} sbig;
+ cbig.c[0] = '\0';
ibig.i[100] = 5;
cbig.c[100] = 'A';
fbig.f[100] = 11.99999;
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Fix for miscexprs test "failure"
1999-04-01 0:00 ` Stan Shebs
@ 1999-03-16 16:03 ` Stan Shebs
0 siblings, 0 replies; 4+ messages in thread
From: Stan Shebs @ 1999-03-16 16:03 UTC (permalink / raw)
To: ahaas; +Cc: gdb-patches
From: ahaas@neosoft.com
Date: Tue, 16 Mar 1999 16:53:47 -0600
Attached is a patch which solves the single "failure" in the
'miscexprs' tests - the problem is with the test program, not
gdb.
Thanks very much for this patch! My own tests weren't showing this as
a fail, but it's clearly system-dependent to depend on uninitialized
data having a particular value.
I'm going to put this in the main repository, but not in the 4.18
branch, since it's small. There are actually a bunch of trunk changes
that are not going to be in 4.18, I'll make a snap from the trunk
before 4.18 is done if anybody asks for it.
Stan
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Fix for miscexprs test "failure"
1999-03-16 15:02 [PATCH] Fix for miscexprs test "failure" ahaas
1999-04-01 0:00 ` ahaas
@ 1999-04-01 0:00 ` Stan Shebs
1999-03-16 16:03 ` Stan Shebs
1 sibling, 1 reply; 4+ messages in thread
From: Stan Shebs @ 1999-04-01 0:00 UTC (permalink / raw)
To: ahaas; +Cc: gdb-patches
From: ahaas@neosoft.com
Date: Tue, 16 Mar 1999 16:53:47 -0600
Attached is a patch which solves the single "failure" in the
'miscexprs' tests - the problem is with the test program, not
gdb.
Thanks very much for this patch! My own tests weren't showing this as
a fail, but it's clearly system-dependent to depend on uninitialized
data having a particular value.
I'm going to put this in the main repository, but not in the 4.18
branch, since it's small. There are actually a bunch of trunk changes
that are not going to be in 4.18, I'll make a snap from the trunk
before 4.18 is done if anybody asks for it.
Stan
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] Fix for miscexprs test "failure"
1999-03-16 15:02 [PATCH] Fix for miscexprs test "failure" ahaas
@ 1999-04-01 0:00 ` ahaas
1999-04-01 0:00 ` Stan Shebs
1 sibling, 0 replies; 4+ messages in thread
From: ahaas @ 1999-04-01 0:00 UTC (permalink / raw)
To: gdb-patches
Hi.
Attached is a patch which solves the single "failure" in the
'miscexprs' tests - the problem is with the test program, not
gdb.
The test script asks gdb to print out the address of character
array member in a structure. The problem is that the array is not
initialized to anything, so when printing out the value, you
get something like
$1 = 0xbfffef34 "{stuff}"
and the test expects
$1 = 0xbfffef34 ""
My solution is simple as is indicated in the patch.
Enjoy.
Art Haas
==============================
--- gdb-4.17.86/gdb/testsuite/gdb.base/miscexprs.c.orig Mon Jan 4 09:34:31 1999
+++ gdb-4.17.86/gdb/testsuite/gdb.base/miscexprs.c Tue Mar 16 16:19:22 1999
@@ -61,6 +61,7 @@
struct {
short s[400];
} sbig;
+ cbig.c[0] = '\0';
ibig.i[100] = 5;
cbig.c[100] = 'A';
fbig.f[100] = 11.99999;
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1999-04-01 0:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-03-16 15:02 [PATCH] Fix for miscexprs test "failure" ahaas
1999-04-01 0:00 ` ahaas
1999-04-01 0:00 ` Stan Shebs
1999-03-16 16:03 ` Stan Shebs
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox