This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] [gdb.threads/testsuite] failure while checking backtrace into main



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\\).*" \

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]