Search code examples
gdbgdbinit

how can I make gdb ignore .gdbinit


I have set up my ~/.gdbinit with some commands for a specific configuration.

Sometimes I would like to start gdb to ignore the .gdbinit.

Is there a mechanism to ignore .gdbinit or override it by another .gdbinit?


Solution

  • Run GDB with

    gdb -nx
    

    This skips the .gdbinit file processing.