nemiver r706 - in trunk: . src/persp/dbgperspective



Author: dodji
Date: Thu Jan 17 22:08:56 2008
New Revision: 706
URL: http://svn.gnome.org/viewvc/nemiver?rev=706&view=rev

Log:
[dbg perspective] signal handler code must be try/catch protected


Modified:
   trunk/ChangeLog
   trunk/src/persp/dbgperspective/nmv-dbg-perspective.cc

Modified: trunk/src/persp/dbgperspective/nmv-dbg-perspective.cc
==============================================================================
--- trunk/src/persp/dbgperspective/nmv-dbg-perspective.cc	(original)
+++ trunk/src/persp/dbgperspective/nmv-dbg-perspective.cc	Thu Jan 17 22:08:56 2008
@@ -2091,51 +2091,82 @@
 DBGPerspective::on_activate_call_stack_view()
 {
     LOG_FUNCTION_SCOPE_NORMAL_DD ;
-    activate_status_view(get_call_stack_scrolled_win());
+
+    NEMIVER_TRY
+    activate_status_view (get_call_stack_scrolled_win());
+    NEMIVER_CATCH
 }
 
 void 
 DBGPerspective::on_activate_variables_view () 
 {
     LOG_FUNCTION_SCOPE_NORMAL_DD ;
-    activate_status_view(get_local_vars_inspector_scrolled_win());
+
+    NEMIVER_TRY
+    activate_status_view (get_local_vars_inspector_scrolled_win());
+    NEMIVER_CATCH
 }
 
 void 
 DBGPerspective::on_activate_output_view () 
 {
     LOG_FUNCTION_SCOPE_NORMAL_DD ;
-    set_show_target_output_view(true);
-    activate_status_view(get_target_output_view_scrolled_win());
+
+    NEMIVER_TRY
+
+    set_show_target_output_view (true);
+    activate_status_view (get_target_output_view_scrolled_win());
+
+    NEMIVER_CATCH
 }
 
 void 
-DBGPerspective::on_activate_target_terminal_view () 
+DBGPerspective::on_activate_target_terminal_view ()
 {
     LOG_FUNCTION_SCOPE_NORMAL_DD ;
-    activate_status_view(get_terminal_box());
+
+    NEMIVER_TRY
+
+    activate_status_view (get_terminal_box());
+
+    NEMIVER_CATCH
 }
 
 void 
 DBGPerspective::on_activate_breakpoints_view ()
 {
     LOG_FUNCTION_SCOPE_NORMAL_DD ;
-    activate_status_view(get_breakpoints_scrolled_win());
+
+    NEMIVER_TRY
+
+    activate_status_view (get_breakpoints_scrolled_win ());
+
+    NEMIVER_CATCH
 }
 
 void 
 DBGPerspective::on_activate_logs_view ()
 {
     LOG_FUNCTION_SCOPE_NORMAL_DD ;
-    set_show_log_view(true);
-    activate_status_view(get_log_view_scrolled_win());
+
+    NEMIVER_TRY
+
+    set_show_log_view (true);
+    activate_status_view (get_log_view_scrolled_win ());
+
+    NEMIVER_CATCH
 }
 
 void
 DBGPerspective::on_activate_registers_view ()
 {
     LOG_FUNCTION_SCOPE_NORMAL_DD ;
-    activate_status_view(get_registers_scrolled_win());
+
+    NEMIVER_TRY
+
+    activate_status_view (get_registers_scrolled_win ());
+
+    NEMIVER_CATCH
 }
 
 #ifdef WITH_MEMORYVIEW
@@ -2143,27 +2174,44 @@
 DBGPerspective::on_activate_memory_view ()
 {
     LOG_FUNCTION_SCOPE_NORMAL_DD ;
+
+    NEMIVER_TRY
+
     activate_status_view(get_memory_view ().widget ());
+
+    NEMIVER_CATCH
 }
-#endif // WITH_MEMORYVIEW
+#endif //WITH_MEMORYVIEW
 
 void
 DBGPerspective::on_activate_global_variables ()
 {
     LOG_FUNCTION_SCOPE_NORMAL_DD ;
-    GlobalVarsInspectorDialog dialog (plugin_path (), debugger (), workbench ()) ;
+
+    NEMIVER_TRY
+
+    GlobalVarsInspectorDialog dialog (plugin_path (),
+                                      debugger (),
+                                      workbench ()) ;
     dialog.run () ;
+
+    NEMIVER_CATCH
 }
 
 void
 DBGPerspective::on_default_config_read ()
 {
     LOG_FUNCTION_SCOPE_NORMAL_DD;
+
+    NEMIVER_TRY
+
     THROW_IF_FAIL (m_priv);
     Pango::FontDescription font_desc(m_priv->get_source_font_name ());
 #ifdef WITH_MEMORYVIEW
     get_memory_view ().modify_font (font_desc) ;
 #endif // WITH_MEMORYVIEW
+
+    NEMIVER_CATCH
 }
 
 //****************************



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]