From 6760920914d7c97cf2f8e93b1fe6dd38f8f83fc0 Mon Sep 17 00:00:00 2001 From: Frederic Riss Date: Thu, 9 Nov 2006 09:20:17 +0000 Subject: [PATCH] 2006-11-09 Christophe Lyon * gdb.base/constvars.c (main): Write to crass and crips, so that they are allocated by the compiler. --- gdb/testsuite/ChangeLog | 5 +++++ 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 9ba407da96d..a039ea30d8b 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2006-11-09 Christophe Lyon + + * gdb.base/constvars.c (main): Write to crass and crips, so that + they are allocated by the compiler. + 2006-10-27 Andreas Schwab * 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 16025770e35..188edb8fcab 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 */ /* -- 2.30.2