This is the mail archive of the ecos-patches@sourceware.org mailing list for the eCos 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]

Additional state for new configtool test platform


This patch provides additional default state for a new configtool test
platform. Checked-in.

John Dallaway
? common/common/build.cxx.keep
Index: ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/host/tools/configtool/ChangeLog,v
retrieving revision 1.72
diff -u -5 -r1.72 ChangeLog
--- ChangeLog	9 Dec 2008 19:05:35 -0000	1.72
+++ ChangeLog	12 Dec 2008 20:57:29 -0000
@@ -1,5 +1,10 @@
+2008-12-12  John Dallaway  <jld@ecoscentric.com>
+
+	* standalone/wxwin/configtooldoc.cpp: Provide additional default state
+	for a new test platform.
+
 2008-12-09  John Dallaway  <jld@ecoscentric.com>
 
 	* standalone/wxwin/runtestsdlg.cpp: Reduce initial/minimum size of the
 	wxNotebook widget to allow initial display of borders and buttons.
 
Index: standalone/wxwin/configtooldoc.cpp
===================================================================
RCS file: /cvs/ecos/ecos/host/tools/configtool/standalone/wxwin/configtooldoc.cpp,v
retrieving revision 1.18
diff -u -5 -r1.18 configtooldoc.cpp
--- standalone/wxwin/configtooldoc.cpp	13 Aug 2008 09:37:07 -0000	1.18
+++ standalone/wxwin/configtooldoc.cpp	12 Dec 2008 20:57:36 -0000
@@ -2297,18 +2297,32 @@
 
         GetCdlConfig()->get_build_info(m_BuildInfo);
         if (NULL==CeCosTestPlatform::Get(strTarget))
         {
             wxString msg;
-            msg.Printf(_("%s is not a recognized platform - do you wish to add it?"), (const wxChar*) strTarget);
+            msg.Printf(_("%s is not a recognized test platform - do you wish to add it?"), (const wxChar*) strTarget);
             if (wxNO == wxMessageBox(msg, wxGetApp().GetSettings().GetAppName(), wxICON_QUESTION|wxYES_NO))
                 return;
             
             ecPlatformEditorDialog dlg(wxGetApp().GetTopWindow());
             
             dlg.m_strPlatform = strTarget;
             dlg.m_strPrefix = GetCurrentTargetPrefix();
+            dlg.m_strGDB = _("set height 0\n"
+            		"set debug remote 0\n"
+            		"set remotebaud %b\n"
+            		"target remote %p\n"
+            		"load\n"
+            		"break cyg_test_exit\n"
+            		"rbreak cyg_assert_fail\n"
+            		"break cyg_test_init\n"
+            		"cont\n"
+            		"set cyg_test_is_simulator=0\n"
+            		"cont\n"
+            		"bt");
+            dlg.m_strPrompt = _("(gdb) ");
+            dlg.m_strInferior = dlg.m_strPrefix + _("-gdb -nw -q %e");
             dlg.m_strCaption=_("New Platform");
             if(wxID_CANCEL == dlg.ShowModal())
             {
                 return;
             }

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