gdbinit man (Debugging with ROCGDB)

Next: gdb-add-index man, Previous: gcore man, Up: Man Pages [Contents][Index]

#### gdbinit man

### gdbinit

    ~/.config/gdb/gdbinit

    ~/.gdbinit

    ./.gdbinit

These files contain ROCGDB commands to automatically execute during ROCGDB startup. The lines of contents are canned sequences of commands, described in Sequences.

Please read more in Startup.

`(not enabled with `--with-system-gdbinit` during compilation)`

  System-wide initialization file. It is executed unless user specified ROCGDB option `-nx` or `-n`. See more in

`(not enabled with `--with-system-gdbinit-dir` during compilation)`

  System-wide initialization directory. All files in this directory are executed on startup unless user specified ROCGDB option `-nx` or `-n`, as long as they have a recognized file extension. See more in System-wide configuration.

``~/.config/gdb/gdbinit` or `~/.gdbinit``

  User initialization file. It is executed unless user specified ROCGDB options `-nx`, `-n` or `-nh`.

``.gdbinit``

  Initialization file for current directory. It may need to be enabled with ROCGDB security command `set auto-load local-gdbinit`. See more in Init File in the Current Directory.