PATH:
usr
/
lib
/
grub
/
i386-pc
### ### Load debuging information about GNU GRUB 2 modules into GDB ### automatically. Needs readelf, Perl and gmodule.pl script ### ### Has to be launched from the writable and trusted ### directory containing *.image and *.module ### ### $Id: .gdbinit,v 1.1 2006/05/14 11:38:08 lkundrak Exp $ ### Lubomir Kundrak <lkudrak@skosi.org> ### # Add section numbers and addresses to .segments.tmp define dump_module_sections set $mod = $arg0 # FIXME: save logging status set logging file .segments.tmp set logging redirect on set logging overwrite off set logging on printf "%s", $mod->name set $segment = $mod->segment while ($segment) printf " %i 0x%lx", $segment->section, $segment->addr set $segment = $segment->next end printf "\n" set logging off # FIXME: restore logging status end document dump_module_sections Gather information about module whose mod structure was given for use with match_and_load_symbols end # Generate and execute GDB commands and delete temporary files # afterwards define match_and_load_symbols shell perl gmodule.pl <.segments.tmp >.loadsym.gdb source .loadsym.gdb shell rm -f .segments.tmp .loadsym.gdb end document match_and_load_symbols Launch script, that matches section names with information generated by dump_module_sections and load debugging info apropriately end ### define load_module dump_module_sections $arg0 match_and_load_symbols end document load_module Load debugging information for module given as argument. end define load_all_modules set $this = grub_dl_head while ($this != 0) dump_module_sections $this set $this = $this->next end match_and_load_symbols end document load_all_modules Load debugging information for all loaded modules. end ### set confirm off file kernel.exec target remote :1234 # inform when module is loaded break grub_dl_add commands silent load_module mod cont end
[+]
..
[-] cryptodisk.mod
[edit]
[-] exfctest.mod
[edit]
[-] ufs1.mod
[edit]
[-] bitmap_scale.mod
[edit]
[-] archelp.mod
[edit]
[-] gcry_sha256.mod
[edit]
[-] gmodule.pl
[edit]
[-] videotest.mod
[edit]
[-] lvm.mod
[edit]
[-] morse.mod
[edit]
[-] diskboot.image
[edit]
[-] setjmp_test.mod
[edit]
[-] hello.mod
[edit]
[-] boot_hybrid.img
[edit]
[-] part_dfly.mod
[edit]
[-] mdraid1x.mod
[edit]
[-] video_bochs.mod
[edit]
[-] bufio.mod
[edit]
[-] file.mod
[edit]
[-] loadenv.mod
[edit]
[-] minix2.mod
[edit]
[-] datetime.mod
[edit]
[-] gcry_seed.mod
[edit]
[-] tr.mod
[edit]
[-] offsetio.mod
[edit]
[-] squash4.mod
[edit]
[-] tar.mod
[edit]
[-] elf.mod
[edit]
[-] mdraid09_be.mod
[edit]
[-] bfs.mod
[edit]
[-] fat.mod
[edit]
[-] gcry_dsa.mod
[edit]
[-] bsd.mod
[edit]
[-] relocator.mod
[edit]
[-] eval.mod
[edit]
[-] ntldr.mod
[edit]
[-] kernel.exec
[edit]
[-] progress.mod
[edit]
[-] all_video.mod
[edit]
[-] keylayouts.mod
[edit]
[-] config.h
[edit]
[-] ata.mod
[edit]
[-] gcry_rsa.mod
[edit]
[-] exfat.mod
[edit]
[-] lzma_decompress.img
[edit]
[-] videotest_checksum.mod
[edit]
[-] part_acorn.mod
[edit]
[-] cmdline_cat_test.mod
[edit]
[-] btrfs.mod
[edit]
[-] pbkdf2_test.mod
[edit]
[-] ntfscomp.mod
[edit]
[-] moddep.lst
[edit]
[-] part_sunpc.mod
[edit]
[-] fshelp.mod
[edit]
[-] diskboot.img
[edit]
[-] net.mod
[edit]
[-] boot.image
[edit]
[-] date.mod
[edit]
[-] hfspluscomp.mod
[edit]
[-] diskfilter.mod
[edit]
[-] datehook.mod
[edit]
[-] cbmemc.mod
[edit]
[-] linux.mod
[edit]
[-] gfxterm_background.mod
[edit]
[-] memdisk.mod
[edit]
[-] tga.mod
[edit]
[-] minix_be.mod
[edit]
[-] afs.mod
[edit]
[-] blocklist.mod
[edit]
[-] video_fb.mod
[edit]
[-] mda_text.mod
[edit]
[-] multiboot.mod
[edit]
[-] macbless.mod
[edit]
[-] help.mod
[edit]
[-] gcry_rijndael.mod
[edit]
[-] romfs.mod
[edit]
[-] drivemap.mod
[edit]
[-] time.mod
[edit]
[-] ext2.mod
[edit]
[-] gcry_sha1.mod
[edit]
[-] priority_queue.mod
[edit]
[-] blscfg.mod
[edit]
[-] acpi.mod
[edit]
[-] terminfo.mod
[edit]
[-] password.mod
[edit]
[-] cbtime.mod
[edit]
[-] testspeed.mod
[edit]
[-] configfile.mod
[edit]
[-] cdboot.img
[edit]
[-] gfxterm.mod
[edit]
[-] boot.mod
[edit]
[-] part_amiga.mod
[edit]
[-] part_dvh.mod
[edit]
[-] png.mod
[edit]
[-] lsacpi.mod
[edit]
[-] keystatus.mod
[edit]
[-] raid6rec.mod
[edit]
[-] ohci.mod
[edit]
[-] zfsinfo.mod
[edit]
[-] iorw.mod
[edit]
[-] gcry_cast5.mod
[edit]
[-] backtrace.mod
[edit]
[-] video.lst
[edit]
[-] minix3.mod
[edit]
[-] iso9660.mod
[edit]
[-] msdospart.mod
[edit]
[-] disk.mod
[edit]
[-] probe.mod
[edit]
[-] gfxmenu.mod
[edit]
[-] minicmd.mod
[edit]
[-] cmosdump.mod
[edit]
[-] biosdisk.mod
[edit]
[-] hexdump.mod
[edit]
[-] ahci.mod
[edit]
[-] gcry_rfc2268.mod
[edit]
[-] part_gpt.mod
[edit]
[-] lnxboot.image
[edit]
[-] xfs.mod
[edit]
[-] affs.mod
[edit]
[-] ldm.mod
[edit]
[-] boot_hybrid.image
[edit]
[-] ntfs.mod
[edit]
[-] linux16.mod
[edit]
[-] lsmmap.mod
[edit]
[-] pci.mod
[edit]
[-] halt.mod
[edit]
[-] gdb_grub2
[edit]
[-] pxeboot.img
[edit]
[-] parttool.mod
[edit]
[-] search_label.mod
[edit]
[-] gfxterm_menu.mod
[edit]
[-] gettext.mod
[edit]
[-] cbtable.mod
[edit]
[-] pbkdf2.mod
[edit]
[-] xzio.mod
[edit]
[-] vbe.mod
[edit]
[-] usb.mod
[edit]
[-] search.mod
[edit]
[-] ufs1_be.mod
[edit]
[-] ufs2.mod
[edit]
[-] mpi.mod
[edit]
[-] chain.mod
[edit]
[-] cbls.mod
[edit]
[-] uhci.mod
[edit]
[-] spkmodem.mod
[edit]
[-] cpio_be.mod
[edit]
[-] bitmap.mod
[edit]
[-] pxe.mod
[edit]
[-] setpci.mod
[edit]
[-] hfsplus.mod
[edit]
[-] pxechain.mod
[edit]
[-] test_blockarg.mod
[edit]
[-] cbfs.mod
[edit]
[-] gcry_rmd160.mod
[edit]
[-] div_test.mod
[edit]
[-] legacy_password_test.mod
[edit]
[-] xnu_uuid_test.mod
[edit]
[-] boot.img
[edit]
[-] test.mod
[edit]
[-] mmap.mod
[edit]
[-] udf.mod
[edit]
[-] testload.mod
[edit]
[-] crypto.lst
[edit]
[-] lzma_decompress.image
[edit]
[-] usb_keyboard.mod
[edit]
[-] cdboot.image
[edit]
[-] reboot.mod
[edit]
[-] gcry_twofish.mod
[edit]
[-] crc64.mod
[edit]
[-] gcry_des.mod
[edit]
[-] video.mod
[edit]
[-] xnu.mod
[edit]
[-] normal.mod
[edit]
[-] kernel.img
[edit]
[-] cpio.mod
[edit]
[-] gcry_blowfish.mod
[edit]
[-] play.mod
[edit]
[-] sendkey.mod
[edit]
[-] cmostest.mod
[edit]
[-] part_msdos.mod
[edit]
[-] reiserfs.mod
[edit]
[-] scsi.mod
[edit]
[-] minix3_be.mod
[edit]
[-] newc.mod
[edit]
[-] trig.mod
[edit]
[-] usbms.mod
[edit]
[-] dm_nv.mod
[edit]
[-] terminal.lst
[edit]
[-] videoinfo.mod
[edit]
[-] geli.mod
[edit]
[-] mdraid09.mod
[edit]
[-] cpuid.mod
[edit]
[-] at_keyboard.mod
[edit]
[-] efiemu.mod
[edit]
[-] crypto.mod
[edit]
[-] gcry_arcfour.mod
[edit]
[-] jpeg.mod
[edit]
[-] signature_test.mod
[edit]
[-] hfs.mod
[edit]
[-] hdparm.mod
[edit]
[-] minix.mod
[edit]
[-] gcry_tiger.mod
[edit]
[-] partmap.lst
[edit]
[-] gcry_sha512.mod
[edit]
[-] sleep_test.mod
[edit]
[-] usbserial_ftdi.mod
[edit]
[-] usbserial_usbdebug.mod
[edit]
[-] ehci.mod
[edit]
[-] part_sun.mod
[edit]
[-] zfs.mod
[edit]
[-] setjmp.mod
[edit]
[-] fs.lst
[edit]
[-] plan9.mod
[edit]
[-] gzio.mod
[edit]
[-] password_pbkdf2.mod
[edit]
[-] cat.mod
[edit]
[-] cmp.mod
[edit]
[-] adler32.mod
[edit]
[-] aout.mod
[edit]
[-] regexp.mod
[edit]
[-] gdb.mod
[edit]
[-] gcry_whirlpool.mod
[edit]
[-] truecrypt.mod
[edit]
[-] functional_test.mod
[edit]
[-] nativedisk.mod
[edit]
[-] font.mod
[edit]
[-] usbserial_common.mod
[edit]
[-] lsapm.mod
[edit]
[-] legacycfg.mod
[edit]
[-] pcidump.mod
[edit]
[-] modinfo.sh
[edit]
[-] minix2_be.mod
[edit]
[-] usbserial_pl2303.mod
[edit]
[-] jfs.mod
[edit]
[-] gcry_idea.mod
[edit]
[-] gcry_md4.mod
[edit]
[-] macho.mod
[edit]
[-] nilfs2.mod
[edit]
[-] usbtest.mod
[edit]
[-] read.mod
[edit]
[-] extcmd.mod
[edit]
[-] vga.mod
[edit]
[-] parttool.lst
[edit]
[-] part_bsd.mod
[edit]
[-] tftp.mod
[edit]
[-] hashsum.mod
[edit]
[-] http.mod
[edit]
[-] luks.mod
[edit]
[-] sfs.mod
[edit]
[-] xnu_uuid.mod
[edit]
[-] cs5536.mod
[edit]
[-] video_colors.mod
[edit]
[-] pxeboot.image
[edit]
[-] memrw.mod
[edit]
[-] gcry_md5.mod
[edit]
[-] lzopio.mod
[edit]
[-] search_fs_file.mod
[edit]
[-] part_apple.mod
[edit]
[-] sleep.mod
[edit]
[-] vga_text.mod
[edit]
[-] procfs.mod
[edit]
[-] loopback.mod
[edit]
[-] part_plan.mod
[edit]
[-] gcry_camellia.mod
[edit]
[-] terminal.mod
[edit]
[-] zfscrypt.mod
[edit]
[-] multiboot2.mod
[edit]
[-] gcry_crc.mod
[edit]
[-] search_fs_uuid.mod
[edit]
[-] pata.mod
[edit]
[-] gcry_serpent.mod
[edit]
[-] lspci.mod
[edit]
[-] command.lst
[edit]
[-] syslinuxcfg.mod
[edit]
[-] gptsync.mod
[edit]
[-] echo.mod
[edit]
[-] video_cirrus.mod
[edit]
[-] true.mod
[edit]
[-] raid5rec.mod
[edit]
[-] serial.mod
[edit]
[-] verify.mod
[edit]
[-] odc.mod
[edit]
[-] ls.mod
[edit]
[-] freedos.mod
[edit]
[-] lnxboot.img
[edit]