minix/lib/libform/gdbinit
Thomas Cort a0e6850f82 Importing lib/libform
No Minix-specific changes needed.

Change-Id: Ia8ddbdb57ac04dfb42d79c374b9e25b189f9dc3b
2013-11-12 07:56:07 -05:00

21 lines
439 B
Plaintext

#
# Print out the line structs
#
define lstructs
set $lstruct=(_FORMI_FIELD_LINES *)$arg0
while ($lstruct)
print *($lstruct)
if ($lstruct->prev != 0x0)
if ($lstruct->prev->next != $lstruct)
print "WARNING: backward pointers inconsistent"
end
end
if ($lstruct->next != 0x0)
if ($lstruct->next->prev != $lstruct)
print "WARNING: forward pointers inconsistent"
end
end
set $lstruct = $lstruct->next
end
end