* sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/bp.cc,
[fw/sdcc] / sim / ucsim / cmd.src / bp.cc
index bc31d24bf20f36e2e9f4ef0cb77bdc8f46fc9b3c..202eb17d8abd70e6e99b832f1eaceaad49032784 100644 (file)
@@ -2,7 +2,7 @@
  * Simulator of microcontrollers (cmd.src/bp.cc)
  *
  * Copyright (C) 1999,99 Drotos Daniel, Talker Bt.
- * 
+ *
  * To contact author send email to drdani@mazsola.iit.uni-miskolc.hu
  *
  */
@@ -107,9 +107,9 @@ cl_break_cmd::do_fetch(class cl_uc *uc,
                                         addr, perm, hit);
       b->init();
       uc->fbrk->add_bp(b);
-      char *s= uc->disass(addr, NULL);
+      const char *s= uc->disass(addr, NULL);
       con->dd_printf("Breakpoint %d at 0x%06x: %s\n", b->nr, addr, s);
-      free(s);
+      free((char *)s);
     }
 }