Date: Fri, 23 Jul 2010 17:21:23 +0000 (UTC) From: Andriy Gapon <avg@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/gnu/usr.bin/gdb/kgdb kld.c Message-ID: <201007231721.o6NHLl4Z094311@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
avg 2010-07-23 17:21:23 UTC FreeBSD src repository Modified files: gnu/usr.bin/gdb/kgdb kld.c Log: SVN rev 210424 on 2010-07-23 17:21:23Z by avg kgdb: correctly map sections to addresses in elf object modules (amd64) Unlike for modules with dso type, in elf object modules all the sections have virtual address of zero. So, it is insufficient to add module base address to section virtual address (as recorded in section header) to get section address in kernel memory. Instead, we should apply the same calculations that are performed by kernel loaders (in boot code and in kernel) when they lay out sections in memory. Discussed with: jhb, np MFC after: 3 weeks Revision Changes Path 1.12 +28 -6 src/gnu/usr.bin/gdb/kgdb/kld.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007231721.o6NHLl4Z094311>