This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] [gdb.threads/testsuite] failure while checking backtrace into main
- From: Denis PILAT <denis dot pilat at st dot com>
- To: gdb-patches <gdb-patches at sourceware dot org>
- Date: Fri, 02 Feb 2007 15:26:13 +0100
- Subject: Re: [RFA] [gdb.threads/testsuite] failure while checking backtrace into main
- References: <45C0C028.1050401@st.com>
While checking for non-regression in the gdb.threads part of the
testsuite, I noticed one test fails with gcc4 since the argument of
the main are removed by the compiler so don't appear when printing
backtrace:
FAIL: gdb.threads/pthreads.exp: check backtrace from main thread
Either we can change the .exp file to avoid checking these arguments,
or we can ensure compiler keeps them as proposed hereby.
We can also just remove the testing of argc and argv from the
pthreads.exp file, that would be better I think.
--
Denis
2007-02-02 Denis Pilat <denis.pilat@st.com>
* gdb.threads/pthreads.exp: remove checking of unused argc and argv
since they can be removed by a compiler optiisation.
Index: testsuite/gdb.threads/pthreads.exp
===================================================================
--- testsuite/gdb.threads/pthreads.exp (revision 553)
+++ testsuite/gdb.threads/pthreads.exp (working copy)
@@ -261,7 +261,7 @@
# Check that the "thread apply N backtrace" command works
gdb_test "thread apply $main_id backtrace" \
- ".* in main \\(argc=.*, argv=.*\\).*" \
+ ".* in main \\(.*\\).*" \
"check backtrace from main thread"
gdb_test "thread apply $thread1_id backtrace" \
".* in thread1 \\(arg=0xfeedface\\).*" \