Re: [rvm-research] How can I debug rvm with GDB?
Erik Brangs <[email protected]>
| Newsgroups | gmane.comp.java.jikes.rvm.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, On 26.08.2014 11:02, beswkwangbo wrote: > I have built jikes rvm in Ubuntu 14.04 64-bit successfully. The ant properties is as below : > > host.name=x86_64-linux > target.name=x86_64-linux > config.name=development > patch.name="" > component.dir=/home/nightwish/projects/jikesrvm-3.1.3/components > dist.dir=/home/nightwish/projects/jikesrvm-3.1.3/dist > build.dir=/home/nightwish/projects/jikesrvm-3.1.3/temp > components.cache.dir=/home/nightwish/projects/jikesrvm-3.1.3/download > > And I can run rvm (e.g. "./rvm -version" or "./rvm -classpath /code Hello" ). > But I cannot debug rvm with zhe command : "./rvm -gdb -version". Debug symbols are currently not enabled by default. You need to set rvm.debug-symbols=true in the ant properties to enable them. Note that the Jikes RVM does not generate debugging information for methods that are compiled at runtime. The debug symbols provided by the build process are only useful for the bootimage runner and the bootimage code. Moreover, you will need to compile the bootimage with the baseline compiler (e.g. using a prototype-opt configuration). If you use a configuration that builds the bootimage with the optimizing compiler and enable debug symbols, you will run into a bug that causes build failures (see https://jira.codehaus.org/browse/RVM-1084 for the matching entry in our issue tracker). If you have access to a Mac system, you can try out rdb, a debugger specifically made for the Jikes RVM. See http://sape.inf.usi.ch/rdb for more information. Kind regards, Erik Brangs ------------------------------------------------------------------------------ Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/