--- freem/src/merr.c 2025/04/30 17:19:16 1.6 +++ freem/src/merr.c 2025/05/01 03:56:29 1.7 @@ -1,5 +1,5 @@ /* - * $Id: merr.c,v 1.6 2025/04/30 17:19:16 snw Exp $ + * $Id: merr.c,v 1.7 2025/05/01 03:56:29 snw Exp $ * stuff for handling program bogosity * * @@ -24,6 +24,9 @@ * along with FreeM. If not, see . * * $Log: merr.c,v $ + * Revision 1.7 2025/05/01 03:56:29 snw + * -m + * * Revision 1.6 2025/04/30 17:19:16 snw * Improve backtraces in debugger * @@ -229,24 +232,23 @@ inline int merr_raise(int num) if (num != OK) { merr_set_ecode_ierr (); - stcpy (merr_stack[nstx].MCODE, code); stcpy (merr_stack[nstx].ECODE, ecode); if (direct_mode == 1 && nstx == 0) { stcpy (merr_stack[nstx].PLACE, "@\201\0"); stcpy (merr_stack[nstx].MCODE, " \201\0"); } - else { + else { getraddress (placebuf, nstx); stcpy (merr_stack[nstx].PLACE, &(placebuf[3])); - /* stcpy (lref, merr_stack[nstx].PLACE); stcnv_m2c (lref); - - if (m_text (lref, merr_stack[nstx].MCODE) == NULL) { + if (routine_get_line (lref, merr_stack[nstx].MCODE) == NULL) { sprintf (merr_stack[nstx].MCODE, "???\201"); } - */ + else { + stcnv_c2m (merr_stack[nstx].MCODE); + } } if (nstx > merr_topstk) merr_topstk = nstx;