* debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and 1208515
authorMaartenBrock <MaartenBrock@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 13 Jun 2006 12:49:43 +0000 (12:49 +0000)
committerMaartenBrock <MaartenBrock@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 13 Jun 2006 12:49:43 +0000 (12:49 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4224 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
debugger/mcs51/cmd.c

index c6a0511b0a5d369b703029353e1e34f0abed2914..ae4ec7a93dae09671f97abf38991d84d2aa53f06 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
+
+       * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
+         1208515
+
 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
 
        * src/port.h (struct PORT): added field gp_tags, to hold the tag
index 6bfe2b11e9bbe40ead804d5566e773338cff6d40..fef7d6dc629f1a0e4504dbbe6533ece2384a8e9e 100644 (file)
@@ -1723,9 +1723,7 @@ int cmdListFunctions (char *s, context *cctxt)
     printf("[functions]\n");
     f = setFirstItem(functions);
     i = 0;
-    for (;;) {
-      if (f == NULL)
-        break;
+    while (f != NULL) {
       if (our_verbose) {
         printf("  %d) sym:%p, fname:%s, modName:%s, mod:%p\n", i,
           f->sym, f->sym->name, f->modName, f->mod);
@@ -1735,7 +1733,7 @@ int cmdListFunctions (char *s, context *cctxt)
                 f->cfpoints, f->afpoints, f->laddr, f->lline);
       }
       else {
-        printf("<%s>", f->modName);
+        printf("<%s>", f->sym->name);
       }
       ++i;
       f = setNextItem(functions);
@@ -1745,7 +1743,7 @@ int cmdListFunctions (char *s, context *cctxt)
 }
 
 /*-----------------------------------------------------------------
- cmdListModules - list functions.
+ cmdListModules - list modules.
 |-----------------------------------------------------------------*/
 int cmdListModules (char *s, context *cctxt)
 {