On 29/02/2008, pluknet wrote:
> Hello,
>
> I've updated to the recent RELENG_7 as of 2008/02/28
> to try the new kld-add feature in kgdb, among other things
> (yes, i do debug kernel modules).
>
> However, now I get an error message;
> also I'm unable to use the add-kld command.
>
> For example:
> # kgdb -q /boot/kernel/kernel /dev/mem
> [GDB will not be able to debug user-mode threads:
> /usr/lib/libthread_db.so: Undefined symbol "ps_pglobal_lookup"]
> There is no member named pathname.
> ^^^^
> (kgdb) add-kld whatever
> Undefined command: "add-kld". Try "help".
>
> I tried to add missing .symbols data as I did before and as described
> in developer's handbook, but that doesn't work anymore.
> [to be honest, I only tried it once, and I hope I didn't mix up
> the numbers in addresses. It's hard to do, though]
>
> $FreeBSD: src/gnu/usr.bin/gdb/kgdb/kld.c,v 1.6.2.1 2008/02/25
> 22:19:56 jhb Exp $
>


JFYI: It works without that issue In CURRENT.

[GDB will not be able to debug user-mode threads:
/usr/lib/libthread_db.so: Undefined symbol "ps_pglobal_lookup"]
Reading symbols from /boot/kernel/pf.ko...Reading symbols from
/boot/kernel/pf.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/pf.ko
Reading symbols from /boot/kernel/snd_envy24ht.ko...Reading symbols
from /boot/kernel/snd_envy24ht.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/snd_envy24ht.ko
Reading symbols from /boot/kernel/sound.ko...Reading symbols from
/boot/kernel/sound.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/sound.ko
Reading symbols from /boot/kernel/snd_spicds.ko...Reading symbols from
/boot/kernel/snd_spicds.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/snd_spicds.ko
Reading symbols from /boot/kernel/atapicam.ko...Reading symbols from
/boot/kernel/atapicam.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/atapicam.ko
Reading symbols from /boot/kernel/acpi.ko...Reading symbols from
/boot/kernel/acpi.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/acpi.ko
Reading symbols from /boot/kernel/tmpfs.ko...Reading symbols from
/boot/kernel/tmpfs.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/tmpfs.ko
Reading symbols from /boot/kernel/msdosfs_iconv.ko...Reading symbols
from /boot/kernel/msdosfs_iconv.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/msdosfs_iconv.ko
Reading symbols from /boot/kernel/libiconv.ko...Reading symbols from
/boot/kernel/libiconv.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/libiconv.ko
Reading symbols from /boot/kernel/nfsserver.ko...Reading symbols from
/boot/kernel/nfsserver.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/nfsserver.ko
#0 doadump () at pcpu.h:195
195 pcpu.h: No such file or directory.
in pcpu.h
(kgdb) add-kld whatever
Unable to locate kld

wbr,
pluknet
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/lis...freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"