I am having a exception crash issue and I am trying to edit this file to get more info about the crash.
Where is .gdbinit
is located and how can I edit it?
I am having a exception crash issue and I am trying to edit this file to get more info about the crash.
Where is .gdbinit
is located and how can I edit it?
You can also put .gdbinit
in your debugging folder, this makes more applicable for debugging different apps. GDB will automatically load ./.gdbinit
for current debugging.
You need to create a new file called .gdbinit - put it in your home directory. Now every time gdb starts it will execute the commands in this file. ".gdbinit" is a file you can drop in your home directory that gdb will parse when gdb launches, either from the command line or from within Xcode.
You may want to add the line echo "set disassembly intel" > ~/.gdbinit
. For example:
gdb@Name:~$ echo "set disassembly intel" > ~/.gdbinit
gdb@Name:~$ cat ~/.gdbinit
set disassembly intel
gdb@Name: