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:
aa2ef34
)
+define countlist
author
jkratoch
<>
Sat, 16 Jan 2010 22:33:33 +0000
(22:33 +0000)
committer
jkratoch
<>
Sat, 16 Jan 2010 22:33:33 +0000
(22:33 +0000)
+define sip
+define nip
.gdbinit
patch
|
blob
|
history
diff --git
a/.gdbinit
b/.gdbinit
index
1fbf968
..
b3f7bae
100644
(file)
--- a/
.gdbinit
+++ b/
.gdbinit
@@
-43,6
+43,19
@@
document plist
List dumper iterating by `->next':
plist <head pointer> [<data field to display>]
end
List dumper iterating by `->next':
plist <head pointer> [<data field to display>]
end
+define countlist
+ set var $countlist_iter=$arg0
+ set var $countlist_count=0
+ while ($countlist_iter)
+ set var $countlist_iter=$countlist_iter->next
+ set var $countlist_count=$countlist_count+1
+ end
+ p $countlist_count
+end
+document countlist
+List elements counter iterating by `->next':
+countlist <head pointer>
+end
define debug
set debug infrun 1
set debug lin-lwp 1
define debug
set debug infrun 1
set debug lin-lwp 1
@@
-51,3
+64,11
@@
document debug
set debug infrun 1
set debug lin-lwp 1
end
set debug infrun 1
set debug lin-lwp 1
end
+define sip
+ stepi
+ x/i $pc
+end
+define nip
+ nexti
+ x/i $pc
+end