git://git.jankratochvil.net
/
nethome.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b47d0df
)
.gdbinit: +break pending=on
author
Jan Kratochvil
<jan.kratochvil@redhat.com>
Thu, 6 May 2021 16:46:42 +0000
(18:46 +0200)
committer
Jan Kratochvil
<jan.kratochvil@redhat.com>
Thu, 6 May 2021 16:46:42 +0000
(18:46 +0200)
.gdbinit: +style enabled=off
.gdbinit: +mycommand
.gdbinit
patch
|
blob
|
history
diff --git
a/.gdbinit
b/.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