>Hex-Rays IDA Pro Page

Help index | Search

Environment variables

The following environment variables are used by IDA:

TMP or TEMP Specifies the directory where the temporary files will be created. Default: C:\TEMP

IDALOG Specifies the name of the log file. Everything appearing in the message window will be dumped there. Default: none

IDALOG_SILENT Suppress all output to the message window. If the IDALOG variable is set, messages will continue to be written to the log file. Otherwise they will be lost.

IDADIR Specifies the IDA directory. Default: the directory where IDA.EXE is located

IDAUSR Specifies the directory for user-specific settings. Default: Windows: "$CSIDL_APPDATA/Datarescue/IDA Pro" Linux: $HOME/.idapro

IDAIDS Specifies the directory with the IDS files. Default: %IDADIR%\IDS

IDASGN Specifies the directory with the SIG files. Default: %IDADIR%\SIG

IDATIL Specifies the directory with the TIL files. Default: %IDADIR%\TIL

IDAIDC Specifies the directory with the IDC files. Default: %IDADIR%\IDC

IDAPLG Specifies the directory with the plugin files. Default: %IDADIR%\PLUGINS

NONAMES Disables the name resolution

IDA_NORELOC Disables processing of the relocation information for some file formats

H8_NOSIZER Disables the display of the operand sizes for H8 module

IDA_LOADLL Load all segments of the input file without asking any questions what segments to load

IDA_NOWIN (Text MS Windows version only) Bypass the code trying to find out the foreground window. This code causes problems under WINE.

IDA_DONT_SWITCH_SCREENS

                (text version only)
                Tells IDA to keep only one screen even during local
                debugging sessions. By default for local
                debugging sessions IDA keeps one screen for the
                debugged application and one screen for itself.

IDA_NOLOCKWINDOWS (gui version only) Do not use LockWindowUpdate API call

IDA_NONUMPAD5 (gui version only) Do not use Numpad-5 to center the listing

IDA_NOAUTOCOMP Do not autodetect compiler for name demangling If this variable is absent and the current compiler is one of MS, Borland, and Watcom then the compiler is autodetected.

TV_DELAY (Text version only under MS Windows'95)

IDA_ELF_PATCH_MODE Overrides patch mode for the new ELF files. If this variable is defined, it must contain a number. Each bit of this number corresponds to an option from the following list:

   0: Replace PIC form of 'Procedure Linkage Table' to non PIC form
   1: Direct jumping from PLT (without GOT) irrespective of its form
   2: Convert PIC form of loading '_GLOBAL_OFFSET_TABLE_[]' of address
   3: Obliterate auxiliary bytes in PLT & GOT for 'final autoanalysis'
   4: Natural form of PIC GOT address loading in relocatable file
   5: Unpatched form of PIC GOT references in relocatable file
   6: Mark 'allocated' objects as library-objects (MIPS only)
The following variables are used to fine-tune the Linux version of IDA:

TVLOG the name of the log-file if it is not defined, use syslog with LOG_WARNING priority TERM the terminal definition (see terminfo) TVOPT the enduser flags. Has many subfields delimited by commas ','. noX11 - when libX11.so is not compatible noGPM - when libgpm.so is not compatible ansi - OR mono - when the terminfo data of your display does not declare it as haing the ANSI-color support ign8 - ignore '8bit as meta key' in the terminfo description xtrack - if your xterm-emulator in telnet client does not support mode 1002 (only 1000), set this flag alt866 - do not encode pseudographic symbols (for the console with alt-font loaded) cyrcvt= - cyrilic conversion (oem/koi8r). possible values are: linux - for linux russian users and PuTTY (in/out koi8r) kwin - output in koi8 and input in cp1251 - any telnet windows - for many telents and any linux users (in/out 1251)

 Client name | Terminal   | TVOPT  | Client settings
 ------------|------------|--------|---------------------------------------
             |            |        |
 SecureCRT   |xterm-scokey| xtrack | Emulation->Terminal: xterm,
             |            |        | Emulation->keyboard: either the
             |            |        |   built-in keyboard, either custom
             |            |        |                  'xt-sco.key' file
             |            |        | Advanced->Terminaltype: xterm-scokey
             |            |        |
 SecureCRT   |   xterm    | xtrack | Emulation->Terminal: xterm+internal kbd
             |            |        |
             |            |        |
 Putty       |xterm-scokey|   -    | Terminal,Keyboard: Control?, Standard,
             |            |        |                    SCO, Normal, Normal
             |            |        |
 Putty       |   xterm    |   -    | Terminal,Keyboard: ControlH, Standard,
             |            |        |                    ~num, Normal, Normal
             |            |        |
 Console     |   linux    |   -    | default
             |            |        |
 X11:xterm   |   xterm    |   -    | default
We recommend to use the 'xterm-scokey' terminal type for remote clients.

When the terminal type is xterm-scokey then add to /etc/inputrc (or to ~/.inputrc) the following string:

"\e[.": delete char

When working on the console without GPM installed, append "noGPM" to TVOPT.

Russian users should append the following settings to the above:

                  | APPEND  TO TVOPT  | APPEND TO Client Settings
 -----------------|---------------------|----------------------------
 Console          | alt866,cyrcvt=linux |
                  |                     |
 X11              | cyrcvt=linux        |
                  |                     |
 Putty            | cyrcvt=linux        | Window,Translation: use font in
                  |                     |           both ANSI and OEM modes
                  |                     |
 SecureCRT        |                     |
   with koi8font  |                     |
    and kbd-hook  | cyrcvt=linux        |
    with koi8font | cyrcvt=kwin         |
   with ANSI-font | cyrcvt=windows      |
                  |                     |
    The best settings for russian users on the console are:
         setfont alt-8x16.psf.gz -m koi2al
         loadkey ru-ms.map
         export TVOPT=cyrcvt=linux,alt866
Index | Previous topic | Next topic