Re: Anyone use kgdb for kernel "development"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Ravi wrote:

> --- Hong Hsu <honghsu@bellatlantic.net> wrote:
> > Ravi,
> >
> > Which version of kernel you are using as the kgdb is
> > debugging on?   It seems the kgdb may never work for
> > 2.4.2-2 version of kernel.
>
>  I have used kgdb on 2.4.7, 2.4.9, 2.4.10 and 2.4.18.
> I remember using it on 2.4.2-2 also, but that was quite a
> while ago.
>  What problems are you seeing? Did the patch apply cleanly?
>

      Ravi,   Thanks for the reply.  The patch apply didn't go cleanly.
Because this is first time I use kgdb and patch, I am wondering you may
point out what is the problem and how to fix these?  Thanks a lot.
-Hong

Here is apply patch log:
[root@Cheetah linux-2.4.2-2-kgdb]# patch -p1 <
/root/download/kgdb/linux-2.4.2-2-kgdb-1.5.patch
patching file Documentation/Configure.help
Hunk #1 succeeded at 19540 with fuzz 2 (offset 4459 lines).
patching file Documentation/i386/gdb-serial.txt
patching file Makefile
Hunk #1 FAILED at 87.
1 out of 1 hunk FAILED -- saving rejects to file Makefile.rej
patching file arch/i386/Makefile
Hunk #1 succeeded at 105 with fuzz 2 (offset 4 lines).
Hunk #2 succeeded at 141 (offset -3 lines).
patching file arch/i386/config.in
Hunk #1 FAILED at 381.
1 out of 1 hunk FAILED -- saving rejects to file arch/i386/config.in.rej

patching file arch/i386/kernel/Makefile
Hunk #2 succeeded at 41 with fuzz 2.
Hunk #3 succeeded at 52 with fuzz 2 (offset -4 lines).
patching file arch/i386/kernel/entry.S
Hunk #1 succeeded at 258 with fuzz 1 (offset -27 lines).
Hunk #2 succeeded at 423 (offset 2 lines).
patching file arch/i386/kernel/gdbstart.c
patching file arch/i386/kernel/gdbstub.c
patching file arch/i386/kernel/nmi.c
Hunk #1 FAILED at 23.
Hunk #2 succeeded at 361 with fuzz 1 (offset 88 lines).
1 out of 3 hunks FAILED -- saving rejects to file
arch/i386/kernel/nmi.c.rej
patching file arch/i386/kernel/traps.c
Hunk #1 succeeded at 51 with fuzz 2 (offset 2 lines).
Hunk #2 succeeded at 289 with fuzz 2 (offset 60 lines).
Hunk #3 succeeded at 296 (offset 7 lines).
Hunk #4 succeeded at 367 (offset 60 lines).
Hunk #5 succeeded at 369 (offset 7 lines).
Hunk #6 succeeded at 573 (offset 67 lines).
Hunk #7 succeeded at 529 (offset 7 lines).
patching file arch/i386/mm/fault.c
Hunk #2 FAILED at 22.
Hunk #3 FAILED at 174.
Hunk #4 succeeded at 325 (offset 24 lines).
Hunk #5 succeeded at 321 with fuzz 2.
2 out of 5 hunks FAILED -- saving rejects to file
arch/i386/mm/fault.c.rej
patching file drivers/char/Makefile
Hunk #1 succeeded at 129 with fuzz 2 (offset 23 lines).
patching file drivers/char/gdbserial.c
patching file drivers/char/serial.c
Hunk #3 succeeded at 216 (offset 12 lines).
Hunk #4 succeeded at 1584 with fuzz 1 (offset 14 lines).
Hunk #5 succeeded at 2699 (offset 12 lines).
Hunk #6 succeeded at 4947 with fuzz 2 (offset 294 lines).
Hunk #7 succeeded at 5210 (offset -125 lines).
Hunk #8 succeeded at 6165 (offset 300 lines).
patching file drivers/char/tty_io.c
Hunk #2 succeeded at 2193 with fuzz 2 (offset 8 lines).
patching file fs/namei.c
Hunk #2 succeeded at 303 (offset 16 lines).
Hunk #3 succeeded at 731 (offset 22 lines).
Hunk #4 succeeded at 769 (offset 16 lines).
patching file fs/super.c
Hunk #1 succeeded at 554 (offset -92 lines).
patching file include/asm-i386/ioctls.h
patching file include/asm-i386/page.h
Hunk #1 FAILED at 88.
1 out of 1 hunk FAILED -- saving rejects to file
include/asm-i386/page.h.rej
patching file include/asm-i386/processor.h
Hunk #1 succeeded at 383 (offset 8 lines).
patching file include/linux/dcache.h
patching file include/linux/gdb.h
patching file include/linux/mount.h
Hunk #1 succeeded at 33 (offset -1 lines).
patching file include/linux/sched.h
Hunk #1 succeeded at 158 (offset 9 lines).
Hunk #2 succeeded at 915 (offset 18 lines).
patching file init/main.c
Hunk #1 succeeded at 56 (offset -4 lines).
Hunk #2 FAILED at 693.
1 out of 2 hunks FAILED -- saving rejects to file init/main.c.rej
patching file kernel/ksyms.c
Hunk #1 succeeded at 472 with fuzz 2 (offset 23 lines).
patching file kernel/sched.c
Hunk #1 succeeded at 741 with fuzz 2 (offset 217 lines).
Hunk #2 succeeded at 742 with fuzz 2 (offset 34 lines).
[root@Cheetah linux-2.4.2-2-kgdb]#



--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux