Coding conventions

The following conventions are used throughout the C++ source code:

There are probably more convention; please follow the style of existing code when writing new packages.

1.Important recommendations

2.Debugging

In case you run into a “segmentation fault” within the mmx-light shell, you can use gdb as follows, assuming that you are in development mode:

gdb mmxlight/build/.libs/mmx-light
[Enter the script]
[Crash information]
bt

In this way you will find the location of the crash inside the C++ source code. In order to obtain more information you must recompile the package involved with the –enable-debug option:

./configure ... --enable-debug

An other convient way to launch the debugger just after an mmx-light session has crashed is as follows:

gdb mmxlight/build/.libs/mmx-light
run --replay
[Crash information]
bt

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License. If you don't have this file, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.