.gdbinit: +break pending=on
authorJan Kratochvil <jan.kratochvil@redhat.com>
Thu, 6 May 2021 16:46:42 +0000 (18:46 +0200)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Thu, 6 May 2021 16:46:42 +0000 (18:46 +0200)
.gdbinit: +style enabled=off
.gdbinit: +mycommand

.gdbinit

index 5a1e9b7..f31f82f 100644 (file)
--- a/.gdbinit
+++ b/.gdbinit
@@ -1,3 +1,5 @@
+set break pending on
+set style enabled off
 # See .bashrc: export GDBHISTFILE="$HOME/.gdb_history"
 # Should also work <jefyi6bzm6.fsf@sykes.suse.de> (untested):
 # set history filename ~/.gdb_history
@@ -77,3 +79,12 @@ define nip
        nexti
        x/i $pc
 end
+
+define mycommand
+  set $i = 0
+  set $foo1=$arg1
+  while $i < $argc
+    eval "print $foo%d", $i
+    set $i = $i + 1
+  end
+end