User Tools

Site Tools


devel:troubleshooting-gdb-scripts

Troubleshooting - GDB Snippets

A collection of GDB scripts useful to print Kamailio's internals at runtime.

TM Module

Transaction Structures

Transactions are stored in hash table _tm_table that has 65536 slots (defined as TABLE_ENTRIES in the code).

set $i=0
while($i<65536)
 
set $ehead = &_tm_table->entries[$i]
set $tcell = _tm_table->entries[$i].next_c
 
while($ehead!=(void*)$tcell)
p $tcell
p *$tcell
set $tcell = $tcell->next_c;
end
 
set $i = $i + 1
end

Memory

devel/troubleshooting-gdb-scripts.txt · Last modified: 2017/09/05 16:16 by miconda