Re: building with debugging turned on
brian <briand-/[email protected]>
| Newsgroups | gmane.comp.lang.sml.smlnj |
|---|---|
| Message-ID | <[email protected]> |
On Mar 26, 2006, at 11:26 AM, John Reppy wrote: > Each version comes with a copy of the installation instructions. > For example, > > http://smlnj.org/dist/working/110.58/INSTALL > > If you install using the config/install.sh command, then you should > be set. The > makefile already uses the -g option to compile the runtime, so > you'll just need > to run gdb on it. For example, if you are in the src/runtime/objs > directory (where > OK. I thought I needed to rebuild with debugging turned on. > the runtime is built), do the following > > gdb ../../../bin/.run/run.ppc-darwin > > and then > > run @SMLload=../../../bin/.heap/sml > > at this point, you'll have SML/NJ running under gdb. > Great. Thank you John ! Brian > - John > > On Mar 26, 2006, at 10:36 AM, brian wrote: > >> Hi John, >> >> Right, the problem is I can't seem to find how to add the -g >> option to the build. >> >> I think I originally installed using the Mac OS X package. >> >> Do I need to grab the sources and build from scratch ? >> >> I can't seem to find any guidance in the doc's including >> installation instructions and my own travels among the README's. >> >> Thanks >> >> Brian >> >> On Mar 23, 2006, at 8:28 PM, John Reppy wrote: >> >>> This is what I usually do when confronted with a crash. You >>> should compile >>> the runtime system with "-g" and then run gdb on it. Use the >>> @SMLload option >>> to the runtime system to load thee sml heap image (the standard >>> one is in >>> bin/.heap. >>> >>> - John >>> >>> On Mar 23, 2006, at 8:56 PM, brian wrote: >>> >>>> Well I can't seem to figure out where these seg faults are >>>> coming from with nl-ffi so it's time to do things the hardware. >>>> >>>> Is it very reasonable to try and build my program with debugging >>>> turned on so I can try to track down the problem using gdb ? >>>> >>>> Perhaps there is a better way ? >>>> >>>> Thanks >>>> >>>> Brian >>>> >>>> >>>> >>>> ------------------------------------------------------- >>>> This SF.Net email is sponsored by xPML, a groundbreaking >>>> scripting language >>>> that extends applications into web and mobile media. Attend the >>>> live webcast >>>> and join the prime developer group breaking into this new coding >>>> territory! >>>> http://sel.as-us.falkag.net/sel? >>>> cmd=lnk&kid=110944&bid=241720&dat=121642 >>>> _______________________________________________ >>>> Smlnj-list mailing list >>>> [email protected] >>>> https://lists.sourceforge.net/lists/listinfo/smlnj-list >>>> >>> >>> >>> >>> ------------------------------------------------------- >>> This SF.Net email is sponsored by xPML, a groundbreaking >>> scripting language >>> that extends applications into web and mobile media. Attend the >>> live webcast >>> and join the prime developer group breaking into this new coding >>> territory! >>> http://sel.as-us.falkag.net/sel? >>> cmd=lnk&kid=110944&bid=241720&dat=121642 >>> _______________________________________________ >>> Smlnj-list mailing list >>> [email protected] >>> https://lists.sourceforge.net/lists/listinfo/smlnj-list >> >> > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the > live webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Smlnj-list mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/smlnj-list ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642