Merge branch 'vendor/XZ'
[dragonfly.git] / sys / dev / raid / vinum / .gdbinit.vinum.paths
1 dir /usr/src/sys/modules/vinum
2 dir /usr/src/sys/i386/conf
3 dir /usr/src/sys
4 define asf
5    set $file = linker_files.tqh_first
6    set $found = 0
7    while ($found == 0)
8      if (*$file->filename == 'v')
9         set $found = 1
10      else
11        set $file = $file->link.tqe_next
12      end
13    end
14    shell /usr/bin/objdump --section-headers /modules/vinum.ko | grep ' .text' | awk '{print "add-symbol-file /modules/vinum.ko \$file->address+0x" $4}' > .asf
15    source .asf
16 end
17 document asf
18 Find the load address of Vinum in the kernel and add the symbols at this address
19 end