V
2  
Tags
There are no tags for this page.
Attachments
Perl 6
SMOP Debugging

Debugging a libtool package is not that straight forward because of the libtool scripts, which gdb doesn't like at all.

First thing, you need to get a debug-friendly compilation, to get that you need to do:

  • CFLAGS='-O0 -g3' ./configure && make clean check

Then, to debug, let's say test/01_smop_lowlevel.t, you must:

  • LD_LIBRARY_PATH=src/.libs/ gdb test/.libs/01_smop_lowlevel.t

This is needed because libtool puts the actual binaries in a .libs directory, and gdb is not happy debugging the script libtool places in the place of the executable.

If you want to run valgrind to check for memory leaks not reported by the SMOP_LOWLEVEL_MEM_TRACE, you can just

  • LD_LIBRARY_PATH=src/.libs valgrind --tool=memcheck --leak-check=full --show-reachable=yes ./test/.libs/08_native_uint.t

See also SMOP Hacking


 

Upload Files

Click "Browse" to find the file you want to upload. When you click "Upload file" your file will be uploaded and added to the list of attachments for this page.

Maximum file size: 50MB

 
 
 
File Name Author Date Uploaded Size

Save Page As

Enter a meaningful and distinctive title for your page.

Page Title:

Tip: You'll be able to find this page later by using the title you choose.

Page Already Exists

There is already a page named XXX. Would you like to:

Save with a different name:

Save the page with the name "XXX"

Append your text to the bottom of the existing page named: "XXX"

Upload Files

Click "Browse" to find the file you want to upload. When you click "Add file" this file will be added to the list of attachments for this page, and uploaded when you save the page.

 
 
 
Add Tags

Enter a tag and click "Add tag". The tag will be saved when you save the page.

Tag: 

Suggestions: