kgdb
[Top] [All Lists]

how to setup a debugging environment

To: kgdb@xxxxxxxxxxx
Subject: how to setup a debugging environment
From: Raju K V <raju.kurunkad@xxxxxxxxx>
Date: Wed, 10 May 2000 18:34:26 +0530
Sender: owner-kgdb@xxxxxxxxxxx
User-agent: Mutt/1.1.10i
hi,

I am developing a RAID controller driver and facing some problems. So I
am thinking of using kgdb to debug it. But how do I setup the debugging
environment? No where is it mentioned how to do it. The RAID card is on
an SMP system running linux-2.2.12(target system). The machine having GDB is a 
small
linux PC running 2.2.12(host system).

I am listing my options for setting up the debugging environment.

1. I untar the kernel sources on the host system. Add the kgdb patch.
Compile it. copy the full source tree to the target system. Install the
kernel. start with "linux gdb". But where do I put the .gdbinit on the
host system? at /usr/src/linux?

2. I do the kernel compilation on the target system and install the
kernel. Then I copy the tree to the host system.

Which of the above methods are better? Also if you have any other
suggestion, I would like to hear it.

Also are there any issue involved in debugging modules thru kgdb?

Thanks in advance,
Raju

<Prev in Thread] Current Thread [Next in Thread>