aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Stubbs <andrew.stubbs@st.com>2006-07-06 14:00:48 +0000
committerAndrew Stubbs <andrew.stubbs@st.com>2006-07-06 14:00:48 +0000
commit09153d5527afdd185c2a6e4660257a559c2d7ccb (patch)
tree7812d60760a1dce2e0d4a09e926f98930318f5ac
parentba1be17eab228d3bdadc9be73f8afeb6f1d7ef6e (diff)
downloadgdb-09153d5527afdd185c2a6e4660257a559c2d7ccb.zip
gdb-09153d5527afdd185c2a6e4660257a559c2d7ccb.tar.gz
gdb-09153d5527afdd185c2a6e4660257a559c2d7ccb.tar.bz2
2006-07-06 Andrew Stubbs <andrew.stubbs@st.com>
* parse.c (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block write_exp_elt_longcst, write_exp_elt_dblcst, write_exp_elt_type, write_exp_elt_intern): Zero initialize tmp.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/parse.c7
2 files changed, 13 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 5f81508..6f7eb2e 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2006-07-06 Andrew Stubbs <andrew.stubbs@st.com>
+
+ * parse.c (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block
+ write_exp_elt_longcst, write_exp_elt_dblcst, write_exp_elt_type,
+ write_exp_elt_intern): Zero initialize tmp.
+
2006-07-05 Daniel Jacobowitz <dan@codesourcery.com>
* remote.c (remote_xfer_partial): Remove KOD support.
diff --git a/gdb/parse.c b/gdb/parse.c
index e0b5b70..5d949fd 100644
--- a/gdb/parse.c
+++ b/gdb/parse.c
@@ -191,6 +191,7 @@ void
write_exp_elt_opcode (enum exp_opcode expelt)
{
union exp_element tmp;
+ memset (&tmp, 0, sizeof (union exp_element));
tmp.opcode = expelt;
@@ -201,6 +202,7 @@ void
write_exp_elt_sym (struct symbol *expelt)
{
union exp_element tmp;
+ memset (&tmp, 0, sizeof (union exp_element));
tmp.symbol = expelt;
@@ -211,6 +213,7 @@ void
write_exp_elt_block (struct block *b)
{
union exp_element tmp;
+ memset (&tmp, 0, sizeof (union exp_element));
tmp.block = b;
write_exp_elt (tmp);
}
@@ -219,6 +222,7 @@ void
write_exp_elt_longcst (LONGEST expelt)
{
union exp_element tmp;
+ memset (&tmp, 0, sizeof (union exp_element));
tmp.longconst = expelt;
@@ -229,6 +233,7 @@ void
write_exp_elt_dblcst (DOUBLEST expelt)
{
union exp_element tmp;
+ memset (&tmp, 0, sizeof (union exp_element));
tmp.doubleconst = expelt;
@@ -239,6 +244,7 @@ void
write_exp_elt_type (struct type *expelt)
{
union exp_element tmp;
+ memset (&tmp, 0, sizeof (union exp_element));
tmp.type = expelt;
@@ -249,6 +255,7 @@ void
write_exp_elt_intern (struct internalvar *expelt)
{
union exp_element tmp;
+ memset (&tmp, 0, sizeof (union exp_element));
tmp.internalvar = expelt;