seemingly good gdbinit for freebsd kernel errors out
- From: "Sanjeev Kumar.S" <sanjeevfiles@xxxxxxxxx>
- Date: Wed, 2 Apr 2008 03:38:36 -0700 (PDT)
Hi,
Im trying to debug a gdb init script that errors
out saying: too few arguments in function call
Here is the script
define kldload
set $kld = linker_files.tqh_first
set $done = 0
while ($kld != 0 && $done == 0)
if ($kld->filename == $arg0)
set $done = 1
else
set $kld = $kld->link.tqe_next
end
end
if ($done == 1)
shell /usr/bin/objdump -h $arg0 | \
awk '/ .text/ { print "set \$offset = 0x" $6 }' > .kgdb.temp
source .kgdb.temp
add-symbol-file $arg0 $kld->address + $offset
end
end
document kldload
Loads a module. Arguments are module name and offset of text section.
end
Any thoughts ?
Thanks,
Sanjeev.
---------------------------------
You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost.
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"
- References:
- Re: Feature request
- From: Ivan Voras
- Re: Feature request
- Prev by Date: Re: Popen and EVFILT_WRITE question
- Next by Date: Regression tests for usr.sbin/zic and lib/libc/stdtime
- Previous by thread: Re: Feature request
- Next by thread: Re: Feature request
- Index(es):
Relevant Pages
|