Hi Rupa, This may be because the source is not got from kernel.org (was it bundled with redhat?)and has some modifications in it. But iam not sure. one simple solution is to read the patch file and manualy do the changes. the trick is to add the lines with the '+' in front of them and remove the lines with the '-' in front of them. of cource if 1 or 2 hunks fail it can be done but can be tedious for a whole kernel patch. one alternative would be to get the latest kernel source from kernel.org and get the latest patch. i think 2.4.18 is supported by kgdb. Cheers, Mohan S PS: Mail me if u want me to make up the traps.c source and give it to u. Dont forget to send the 2.4.2-2 traps.c file. --- Rupa <rupa.ramakrishna@ionidea.com> wrote: > Hi Mohankumar, > I used "patch -p0 <linux-2.4.2-2-kgdb-1.5.patch > " command to patch kgdb > to kernel source(2.4.2-2 for Redhat 7.1).When I ran > this command it patched > few files and showed the following message, > > The text leading up to this was > ---------------------------------------------- > ------- > #ifdef CONFIG_X86_REMOTE_DEBUG > ------- > ------- > #endif > ----------------------------------------------- > File to Patch: > > It prompted to give file, when i skipped this ,it > displayed following > message > > 1 out of 1 hunk ignored. > patching file > /usr/src/linux-2.4.2-2/arch/i386/kernel/traps.c > Hunk #1 FAILED at 49. > ------ > ------ > Perhaps you used the wrong -p or --strip options. > -------------------------------------------------- > > Please help me in this regard, > > Rupa > > ----- Original Message ----- > From: "mohan kumar" <mohan_knb@yahoo.com> > To: "Rupa" <rupa.ramakrishna@ionidea.com> > Sent: Thursday, September 05, 2002 7:40 PM > Subject: Re: Trouble in setting up of KGDB > > > > hi, > > the "file not found" by patch is usualy due to a > wrong > > -p level. try -p0. man patch for more details on p > > level. > > also kgdb is not something hard. i just followed > the > > documentation and got it up and running. but of > cource > > loading a module and testing is a pain though. > > if you have any clarification feel free to mail > me. > > > > Cheers, > > Mohan S > > > > > > --- Rupa <rupa.ramakrishna@ionidea.com> wrote: > > > Hi, > > > > > > I'm trying to install KGDB patch into my > Linux > > > Kernel. I downloaded the patch that matched my > > > Kernel version. > > > I patched the kernel with command "patch -p1 > > > <kgdb-2.4.2-2 " in the /usr/src/linux-2.4 > directory. > > > While patching the kernel > > > it asked for particular files to patch, which I > > > ignored, since I could not find the appropriate > > > files. Thereafter, I could not find the gdbstub > > > entry in the kernel hacking menu item in the > > > menuconfig. > > > > > > Am I taking the right steps to patch the kernel. > > > > > > Do anyone have the working experience of > patching > > > the kernel with KGDB and using the same to > perform > > > remote debugging. > > > > > > Expecting your advice > > > > > > Regards, > > > Rupa > > > > > > > > > __________________________________________________ > > Do You Yahoo!? > > Yahoo! Finance - Get real-time stock quotes > > http://finance.yahoo.com > > -- > Kernelnewbies: Help each other learn about the Linux > kernel. > Archive: > http://mail.nl.linux.org/kernelnewbies/ > FAQ: http://kernelnewbies.org/faq/ > __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/