X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=sim%2Fucsim%2Fcmd.src%2Finfo.cc;h=fbdc1f953166d874005c8483d82238ed08d2a972;hb=fca88f56fdc29aeb56aa4b9ff7195c9a69adf034;hp=077c7327186b47aa42239039cb23eb722974f75e;hpb=066cd8ebd4f07ca4e8777d238da4313f8915169f;p=fw%2Fsdcc diff --git a/sim/ucsim/cmd.src/info.cc b/sim/ucsim/cmd.src/info.cc index 077c7327..fbdc1f95 100644 --- a/sim/ucsim/cmd.src/info.cc +++ b/sim/ucsim/cmd.src/info.cc @@ -2,7 +2,7 @@ * Simulator of microcontrollers (cmd.src/info.cc) * * Copyright (C) 1999,99 Drotos Daniel, Talker Bt. - * + * * To contact author send email to drdani@mazsola.iit.uni-miskolc.hu * */ @@ -30,7 +30,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA // sim.src #include "simcl.h" - + // local #include "infocl.h" @@ -45,18 +45,17 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA COMMAND_DO_WORK_UC(cl_info_bp_cmd) { int i; - char *s; con->dd_printf("Num Type Disp Hit Cnt Address What\n"); for (i= 0; i < uc->fbrk->count; i++) { class cl_brk *fb= (class cl_brk *)(uc->fbrk->at(i)); - s= uc->disass(fb->addr, NULL); + const char *s= uc->disass(fb->addr, NULL); con->dd_printf("%-3d %-10s %s %-5d %-5d 0x%06x %s\n", fb->nr, "fetch", (fb->perm==brkFIX)?"keep":"del ", fb->hit, fb->cnt, fb->addr, s); - free(s); + free((char *)s); } for (i= 0; i < uc->ebrk->count; i++) {