From: ahaas@neosoft.com
To: gdb-patches@cygnus.com
Subject: [PATCH] Fix for miscexprs test "failure"
Date: Tue, 16 Mar 1999 15:02:00 -0000 [thread overview]
Message-ID: <19990316165347.A21562@localhost.neosoft.com> (raw)
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;
WARNING: multiple messages have this Message-ID
From: ahaas@neosoft.com
To: gdb-patches@cygnus.com
Subject: [PATCH] Fix for miscexprs test "failure"
Date: Thu, 01 Apr 1999 00:00:00 -0000 [thread overview]
Message-ID: <19990316165347.A21562@localhost.neosoft.com> (raw)
Message-ID: <19990401000000.5IIGf-6BtbWctgZN09_aM4ZMwVhZdNLnE5dYApGkkFo@z> (raw)
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;
next reply other threads:[~1999-03-16 15:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-03-16 15:02 ahaas [this message]
1999-04-01 0:00 ` ahaas
1999-04-01 0:00 ` Stan Shebs
1999-03-16 16:03 ` Stan Shebs
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=19990316165347.A21562@localhost.neosoft.com \
--to=ahaas@neosoft.com \
--cc=gdb-patches@cygnus.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