Re: regarding kgdb in ppc

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

 



Hi SK,
Thanks for the reply.

Please learn not to top-post.
http://en.wikipedia.org/wiki/Top-posting

yeah sorry , forgot abt it

On 11/30/06, Anumolu Sudheer < urwithsudheer@xxxxxxxxx > wrote:
> As i was not able to do  kgdb with  ppc as target, i decided to try first
> with two x86 PCs. On the target system  after uncompressing the kernel i
> could not see any statement like  "Waiting for connection from remote gdb".

My documentation:
http://www.shakthimaan.com/downloads/glv/kgdb-howto/kgdb-howto.html
I could not have any luck even with your doc. Am not sure what am missing. Some details are below.
The .config options/macros under kernel hacking are as below:
# Kernel hacking
.
.
.
CONFIG_KGDB=y
CONFIG_KGDB_CONSOLE=y
CONFIG_KGDB_THREAD=y
# CONFIG_KGDB_ONLY_MODULES is not set
CONFIG_KGDB_8250_NOMODULE=y
# CONFIG_KGDBOE_NOMODULE is not set
# CONFIG_KGDBOE is not set
CONFIG_KGDB_8250=y
CONFIG_KGDB_SIMPLE_SERIAL=y
CONFIG_KGDB_BAUDRATE=115200
CONFIG_KGDB_PORT_NUM=0
---> The CONFIG_KGDB_THREAD=y is not present in the .config even after the patches are applied. I have edited the lib/Kconfig.debug and enabled it. The GDB_CONSOLE macro in the kernel code is only  related with mips, so didnt try for it.

My grub.conf is as below:
title Red Hat Enterprise Linux AS-up (2.6.9-34.EL)
    root (hd0,6)
    kernel /boot/vmlinuz-2.6.9-34.EL ro root=LABEL=/ rhgb quiet
    initrd /boot/initrd-2.6.9-34.EL.img
title Linux-2.6.15.5-kgdb
    root (hd0,6)
    kernel /boot/vmlinuz-2.6.15.5-kgdb ro root=/dev/hda5  gdb gdbbaud=115200
 savedefault
 boot

Your doc doesn't speak about gdbserver. Isn't it  required ?

Thanks
Sudheer

SK

--
Shakthi Kannan
http://www.shakthimaan.com


[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