[nemiver/console: 11/11] Fix break command



commit 04dcd797bd32aa617004d51229a86cfbacb0c6ef
Author: Fabien Parent <parent f gmail com>
Date:   Fri Mar 2 17:55:36 2012 +0100

    Fix break command

 src/dbgengine/nmv-dbg-console.cc |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/dbgengine/nmv-dbg-console.cc b/src/dbgengine/nmv-dbg-console.cc
index d6bbcb3..056147c 100644
--- a/src/dbgengine/nmv-dbg-console.cc
+++ b/src/dbgengine/nmv-dbg-console.cc
@@ -421,12 +421,15 @@ struct CommandBreak : public Console::SynchronousCommand {
         if (frame.file_full_name ().empty () ||
             dbg_data.current_file_path.empty ()) {
             a_stream << "Cannot set a breakpoint at this position.\n";
+            return;
         }
 
         if (a_argv.size () > 1) {
             a_stream << "Too much parameters.\n";
+            return;
         } else if (a_argv.size () == 0) {
             debugger.set_breakpoint (frame.file_full_name (), frame.line ());
+            return;
         }
 
         const char first_param_char = a_argv[0][0];



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