* debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
authorborutr <borutr@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Thu, 22 Mar 2007 20:44:15 +0000 (20:44 +0000)
committerborutr <borutr@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Thu, 22 Mar 2007 20:44:15 +0000 (20:44 +0000)
  fixed bug #1653671: sdcdb integration into ddd is broken

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4709 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
debugger/mcs51/cmd.c
debugger/mcs51/sdcdb.c

index bb2951e4dcaaa72255e4d31375a63bd48ef154b7..152603c1fa0e3399c029fd0b0cff2c3cfb5812ae 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-03-22 Borut Razem <borut.razem AT siol.net>
+
+       * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
+         fixed bug #1653671: sdcdb integration into ddd is broken
+
 2007-03-22 Raphael Neider <rneider AT web.de>
 
        * src/pic/gen.c (popGetExternal): augmented to also create references
index 059826bb4eefc63098db5510124cf6f3ece6ae12..840a57a400f28a5491686373acb84282776602b6 100644 (file)
@@ -2016,7 +2016,7 @@ int cmdInfo (char *s, context *cctxt)
     s = trim(s);
 
     /* list all break points */
-    if (strcmp(s,"break") == 0) {
+    if (strncmp(s,"break",5) == 0) {
         listUSERbp();
         return 0;
     }
index 507ad1bfc7b7337b8b598f32a0b230b663de1649..f2fddbe51a6b8bea4deec4e7e51382310202360c 100644 (file)
@@ -1453,9 +1453,9 @@ static void commandLoop(FILE *cmdfile)
           if ( cmdfile == stdin )
           {
               if (sim_cmd_mode)
-                  line_read = (char*)readline ("(sim)");
+                  line_read = (char*)readline ("(sim) ");
               else
-                  line_read = (char*)readline ("(sdcdb)");
+                  line_read = (char*)readline ("(sdcdb) ");
           }
           else
               line_read = (char*)readline ("");