<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">Hi,<div><br></div><div>I have upgraded to 22.01.4 and installed debugging grades, the tools from the command line are:</div><div><br></div><div><div><font face="APL385"><span style="font-style: normal;">➜ f2 git:(ast-review) ✗ which mdb</span></font></div><div><font face="APL385"><span style="font-style: normal;">/usr/local/mercury-22.01.4/bin/mdb</span></font></div><div><font face="APL385"><span style="font-style: normal;">➜ f2 git:(ast-review) ✗ which mmc</span></font></div><div><font face="APL385"><span style="font-style: normal;">/usr/local/mercury-22.01.4/bin/mmc</span></font></div></div><div><br></div><div>Asking for the list of grades I get:</div><div><br></div><div><div><font face="APL385"><span style="font-style: normal;">➜ f2 git:(ast-review) ✗ mmc --output-stdlib-grades</span></font></div><div><font face="APL385"><span style="font-style: normal;">hlc.gc</span></font></div><div><font face="APL385"><span style="font-style: normal;">hlc.gc.memprof</span></font></div><div><font face="APL385"><span style="font-style: normal;">hlc.gc.prof</span></font></div><div><font face="APL385"><span style="font-style: normal;">hlc.gc.tr</span></font></div><div><font face="APL385"><span style="font-style: normal;">hlc.gcd.ll_debug</span></font></div><div><font face="APL385"><span style="font-style: normal;">hlc.par.gc</span></font></div><div><font face="APL385"><span style="font-style: normal;">none.gc</span></font></div><div><font face="APL385"><span style="font-style: normal;">none.gc.debug.stseg</span></font></div><div><font face="APL385"><span style="font-style: normal;">none.gc.decldebug.stseg</span></font></div><div><font face="APL385"><span style="font-style: normal;">none.gc.prof</span></font></div><div><font face="APL385"><span style="font-style: normal;">none.gc.profdeep.stseg</span></font></div><div><font face="APL385"><span style="font-style: normal;">none.gc.tr.debug.stseg</span></font></div><div><font face="APL385"><span style="font-style: normal;">none.par.gc.stseg</span></font></div></div><div><br></div><div>My makefile uses hlc.gcd.ll_debug</div><div><br></div><div>I have created a local file called .mdbrc which contains:</div><div><br></div><div><font face="APL385"><span style="font-style: normal;">cat .mdbrc</span></font></div><div><font face="APL385"><span style="font-style: normal;"><br></span></font></div><div><div><font face="APL385"><span style="font-style: normal;">➜ f2 git:(ast-review) ✗ cat .mdbrc</span></font></div><div><font face="APL385"><span style="font-style: normal;">break felt.m:44</span></font></div><div><font face="APL385"><span style="font-style: normal;">break -PS ast.m:87</span></font></div></div><div><br></div><div>When I run mdb, it just doesn't stop on either of the breakpoints given.</div><div><br></div><div>I then tried building with 'none.gc.debug.stseg' which built ok but when I tried to invoke the debugger:</div><div><br></div><div><div><font face="APL385"><span style="font-style: normal;">➜ f2 git:(ast-review) ✗ mdb ./felt</span></font></div><div><font face="APL385"><span style="font-style: normal;"><br></span></font></div><div><font face="APL385"><span style="font-style: normal;">*** Mercury runtime: caught bus error ***</span></font></div><div><font face="APL385"><span style="font-style: normal;">cause: invalid address alignment</span></font></div><div><font face="APL385"><span style="font-style: normal;">address involved: 0x104ed6000</span></font></div><div><font face="APL385"><span style="font-style: normal;">This may have been caused by a stack overflow, due to unbounded recursion.</span></font></div><div><font face="APL385"><span style="font-style: normal;">exiting from signal handler</span></font></div></div><div><br></div><div><br></div><div>I have an issue I'd like to debug, I've never used the Mercury debugger before and thought it would be fun to try it. I have installed the emacs file and that also has the same issue in that it does not stop on a breakpoint.</div><div><br></div><div>I have some confusion over use o the --debug flag too, II understand it is NOT required if you explicitly mention the debug grade which is what is in my Makefile</div><div><br></div><div><div><font face="APL385"><span style="font-style: normal;">#GRADE=hlc.gc</span></font></div><div><font face="APL385"><span style="font-style: normal;">#GRADE=none.gc.debug.stseg</span></font></div><div><font face="APL385"><span style="font-style: normal;">#GRADE=hlc.gcd.ll_debug</span></font></div><div><font face="APL385"><span style="font-style: normal;">GRADE=none.gc.debug.stseg</span></font></div></div><div><br></div><div><br></div><div>What have I done wrong?</div><div><br></div><div><br></div></body></html>