From becf64774cdedd594ecd268e5822bf7fc60333bc Mon Sep 17 00:00:00 2001 From: Paul Pluzhnikov Date: Thu, 17 Jul 2008 19:01:44 +0000 Subject: [PATCH] Fix for gdb.base/corefile.exp failure on Linux --- gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/gdb.base/coremaker.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 377cff1224e..ae84e068e7a 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2008-07-17 Paul Pluzhnikov + + * gdb.base/coremaker.c: Fix for Linux failure in gdb.base/corefile.exp + 2008-07-15 Paul Pluzhnikov * gdb.cp/class2.exp: fix for failure on spu-elf diff --git a/gdb/testsuite/gdb.base/coremaker.c b/gdb/testsuite/gdb.base/coremaker.c index 2cfa15aee45..d743cc6b439 100644 --- a/gdb/testsuite/gdb.base/coremaker.c +++ b/gdb/testsuite/gdb.base/coremaker.c @@ -96,6 +96,8 @@ mmapdata () return; } } + /* Touch buf2 so kernel writes it out into 'core'. */ + buf2[0] = buf1[0]; } void @@ -137,4 +139,3 @@ int main () func1 (); return 0; } - -- 2.30.2