kgdb
[Top] [All Lists]

Re: how to setup a debugging environment

To: Raju K V <raju.kurunkad@xxxxxxxxx>
Subject: Re: how to setup a debugging environment
From: sfoehner@xxxxxxxxxxxxxxxxxxx (Scott Foehner)
Date: Wed, 10 May 2000 13:49:38 -0700 (PDT)
Cc: kgdb@xxxxxxxxxxx
In-reply-to: Raju K V <raju.kurunkad@xxxxxxxxx> "how to setup a debugging environment" (May 10, 6:34pm)
References: <20000510183426.D14378@xxxxxxxxx>
Sender: owner-kgdb@xxxxxxxxxxx
It's not necessary to have the source tree on both systems.  So, I would
recommend compiling on the host system, so that gdb can look at the sources.
Just copy the kernel over to the target system (the one you are debugging).

.gdbinit is a gdb config file.  It should be placed in your home directory.

Scott

On May 10,  6:34pm, Raju K V wrote:
> Subject: how to setup a debugging environment
> 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
>-- End of excerpt from Raju K V



-- 
Scott Foehner                   SGI
sfoehner@xxxxxxxxxxxx           Computer Systems Business Unit
650-933-3473                    Core OS

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