[lug] KGDB and 2.6 {no filter}
Ian S. Nelson
nelsonis at earthlink.net
Fri Aug 6 07:05:23 MDT 2004
You need to have the exact same code on both sides, with symbols on the
debugger side. Is this an embedded device? If so, you load it up
like you normally do with an ICE or flash burner or whatever, that's
your kernel and driver with the kdgb stub in it. Then on your dev
machine where you built it or test it from you need that same kernel
with symbols; I mean exactly the same do the full 5 minute build every
time if there is any doubt.
GDB doesn't run on the device you're debugging, that computer just
single steps and reports register information back to the dev machine
which is where GDB interprets the values in from the registers, reads
the debug symbols and then displays the source code that the machine is
running.
Ian
Rodger.Wilson at Emulex.Com wrote:
>I have used KGDB on 2.4 kernels a lot however I have failed to ever get it working with 2.6. Once I was really close but failed to get the symbol table from my driver, then this week I couldn't even break into the kernel.
>
>If you have a working 2.6 KGDB kernel I would love to get a tar file from you and maybe a 5 min tutorial on how to get the symbol table across to GDB.
>
>Rodger Wilson
>Senior engineer - Emulex
>720-394-7275 (cell)
>720-494-2488 (work)
>
> -----Original Message-----
>From: lug-bounces at lug.boulder.co.us [mailto:lug-bounces at lug.boulder.co.us] On Behalf Of Ian S. Nelson
>Sent: Wednesday, August 04, 2004 6:53 PM
>To: Boulder (Colorado) Linux Users Group -- General Mailing List
>Subject: Re: [lug] KGDB and 2.6 {no filter}
>
> << File: OpenPGP digital signature >> << File: ATT20716.txt >> I use it from time to time.
>
>What's not working?
>
>Ian
>
>
>Rodger.Wilson at Emulex.Com wrote:
>
> >Does anyone else here use KGDB? I have been struggling to get it to
>working with 2.6 off and on for the last month.
> >
> >Rodger Wilson
> >Senior engineer - Emulex
> >720-394-7275 (cell)
> >720-494-2488 (work)
> >
>
>
>
>
>
>
>
--
*Ian S. Nelson
PGP/GPG email preferred.
Public Key: 00D3D983
<http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x00D3D983>
Fingerprint: 3EFD7B86B888D7E229B69E97576F1B9700D3D983 *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20040806/5428a931/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 253 bytes
Desc: OpenPGP digital signature
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20040806/5428a931/attachment.pgp>
More information about the LUG
mailing list