How to reload gdbinit?

12,444

Solution 1

You can execute the commands in .gdbinit (or any other file) with the source command. E.g., "source .gdbinit" will execute the commands in the .gdbinit in your current directory. You will need to specify the path if you want to use another .gdbinit, such as "source ~/.gdbinit" for the one in your home directory.

This will only execute the commands currently in the file; it will not reset or undo the commands that were previously in the file. So it will update any definitions or settings the current commands make, but it will not erase or undo any old definitions or settings.

Solution 2

source ~/.gdbinit

http://pirate.shu.edu/~minimair/assembler/

Share:
12,444

Related videos on Youtube

Ciro Santilli OurBigBook.com
Author by

Ciro Santilli OurBigBook.com

反中国共产党常见问答集 Anti Chinese government FAQ | $ Sponsor Ciro $ | cirosantilli.com | OurBigBook.com | Necromancer #1 in 2019-07 | Linux Kernel Module Cheat | x86 Bare Metal Examples | Cool Data in the Bitcoin Blockchain | 2D Reinforcement Learning Game | Oxford Nanopore River Bacteria | ELF hello world | Articles | Cirism | Contact | Ukraine: 1) Putin bad, democracy less bad 2) USA has done similar: Iraq, Cuban Missile crisis, Monroe Doctrine, CIA backed dictatorships in Latin America and Middle East 3) Realpolitik view: https://www.youtube.com/watch?v=JrMiSQAGOS4 | https://www.youtube.com/watch?v=ZnHo6JXxcQM 4) Promise to stop NATO/EU expansion in Ukraine. Ukraine is not fundamental for West security, but is for Russia. Make a deal with the Devil. 5) Independence referendums on each Ukrainian Oblast 6) More nuclear power in Europe to reduce Russian gas dependency. https://cirosantilli.com/china-dictatorship/gay-putin https://cirosantilli.com/china-dictatorship/putler https://cirosantilli.com/china-dictatorship/alexei-navalny https://cirosantilli.com/china-dictatorship/putin-riding-things https://cirosantilli.com/china-dictatorship/belarus Как правильно сдаваться How to surrender https://t.me/s/rf200_now Найти пропавшего русского солдата Find missing Russian soldier Когда и где протестовать против войны When and where to protest against the war Main squares, 19:00 weekdays, 14:00 weekends. https://cirosantilli.com/china-dictatorship/tiananmen Freedom of speech posts https://meta.stackexchange.com/q/366163/200117 https://meta.stackexchange.com/q/361486/200117 See: https://github.com/cirosantilli/china-dictatorship/blob/master/stack-exchange-lost-freedom-of-speech.md

Updated on September 15, 2022

Comments

  • Ciro Santilli OurBigBook.com
    Ciro Santilli OurBigBook.com over 1 year

    Is there a way to reload .gdbinit file.

    Assume that you are already working in gdb, and you have made changes to .gdbinit, and want to reload the new .gdbinit without disturbing the present gdb environment.

    Is this possible?