Confirmed users
507
edits
Line 149: | Line 149: | ||
* Alternatively, if your object directories are called 'obj*' under your source directory, you can set feninit.default.objdir to the source directory itself. The script will scan the source directory and list all the object directories that it found. | * Alternatively, if your object directories are called 'obj*' under your source directory, you can set feninit.default.objdir to the source directory itself. The script will scan the source directory and list all the object directories that it found. | ||
* Note that there have been problems in the past with using ~ and $HOME in the setting, so use absolute path for best results. | * Note that there have been problems in the past with using ~ and $HOME in the setting, so use absolute path for best results. | ||
* PRO-TIP: Put the following code block inside gdbinit.local to always use the current directory as the object directory, | |||
python | |||
import os | |||
feninit.default.objdir = os.getcwd() | |||
end | |||
==== feninit.default.srcroot ==== | ==== feninit.default.srcroot ==== | ||
* Unlike the previous setting, feninit.default.srcroot specifies the directory containing all the source directories. This is convenient if you have 'src/mozilla-central', 'src/mozilla-inbound', 'src/mozilla-aurora', etc. In that case, you can set feninit.default.srcroot to 'src' and all the source directories will be scanned for object directories. | * Unlike the previous setting, feninit.default.srcroot specifies the directory containing all the source directories. This is convenient if you have 'src/mozilla-central', 'src/mozilla-inbound', 'src/mozilla-aurora', etc. In that case, you can set feninit.default.srcroot to 'src' and all the source directories will be scanned for object directories. |