[nemiver] Selecting a frame w/o debug info disassembles it



commit b71907c6408c6c46e681c041e7aefe2aeaf3c40f
Author: Dodji Seketeli <dodji redhat com>
Date:   Fri Aug 27 13:32:33 2010 +0200

    Selecting a frame w/o debug info disassembles it
    
    	* src/persp/dbgperspective/nmv-dbg-perspective.cc
    	(DBGPerspective::on_frame_selected_signal): Support disassembling
    	when selecting a frame that has no debug info.

 src/persp/dbgperspective/nmv-dbg-perspective.cc |   21 ---------------------
 1 files changed, 0 insertions(+), 21 deletions(-)
---
diff --git a/src/persp/dbgperspective/nmv-dbg-perspective.cc b/src/persp/dbgperspective/nmv-dbg-perspective.cc
index b6316e5..87e0b09 100644
--- a/src/persp/dbgperspective/nmv-dbg-perspective.cc
+++ b/src/persp/dbgperspective/nmv-dbg-perspective.cc
@@ -2593,30 +2593,9 @@ DBGPerspective::on_frame_selected_signal (int /* a_index */,
 {
     LOG_FUNCTION_SCOPE_NORMAL_DD;
 
-
     NEMIVER_TRY
 
     m_priv->current_frame = a_frame;
-    UString file_path = a_frame.file_full_name ();
-
-    if (file_path == "") {
-        file_path = a_frame.file_name ();
-        if (!find_file_in_source_dirs (file_path, file_path)) {
-            UString message;
-            message.printf (_("File path info is missing for function '%s'"),
-                    a_frame.function_name ().c_str ());
-            LOG_ERROR (message);
-            return;
-            //TODO: we should disassemble the current frame and display it.
-        }
-    }
-
-    if (a_frame.line () == 0) {
-        LOG_ERROR ("Line info is missing for function '"
-                         + a_frame.function_name () + "'");
-        return;
-        //TODO: we should disassemble the current frame and display it.
-    }
 
     get_local_vars_inspector ().show_local_variables_of_current_function
                                                                     (a_frame);



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