diff options
author | Frederic Riss <frederic.riss@st.com> | 2006-11-09 09:20:17 +0000 |
---|---|---|
committer | Frederic Riss <frederic.riss@st.com> | 2006-11-09 09:20:17 +0000 |
commit | 6760920914d7c97cf2f8e93b1fe6dd38f8f83fc0 (patch) | |
tree | d777842b488b57a6103b1017821976c2397d4cae /gdb | |
parent | 4eaf9bc93a3d07d506d7fe631789a4d8e1df8bda (diff) | |
download | gdb-6760920914d7c97cf2f8e93b1fe6dd38f8f83fc0.zip gdb-6760920914d7c97cf2f8e93b1fe6dd38f8f83fc0.tar.gz gdb-6760920914d7c97cf2f8e93b1fe6dd38f8f83fc0.tar.bz2 |
2006-11-09 Christophe Lyon <christophe.lyon@st.com>
* gdb.base/constvars.c (main): Write to crass and crips, so that
they are allocated by the compiler.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/constvars.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 9ba407d..a039ea3 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2006-11-09 Christophe Lyon <christophe.lyon@st.com> + + * gdb.base/constvars.c (main): Write to crass and crips, so that + they are allocated by the compiler. + 2006-10-27 Andreas Schwab <schwab@suse.de> * gdb.base/multi-forks.exp: Use "detach fork" instead of diff --git a/gdb/testsuite/gdb.base/constvars.c b/gdb/testsuite/gdb.base/constvars.c index 1602577..188edb8 100644 --- a/gdb/testsuite/gdb.base/constvars.c +++ b/gdb/testsuite/gdb.base/constvars.c @@ -169,8 +169,8 @@ main (void) /* various structs with const members */ - struct crass { char * const ptr; } crass; - struct crisp { char * const *ptr; } crisp; + struct crass { char * const ptr; } crass = { lamprey }; + struct crisp { char * const *ptr; } crisp = { &lamprey }; /* misc. references */ /* |