I am using kernel version 2.6.32.5.. gdbstub.c is not present in path kernel/debug. Is there anything I need to install? I have compiled the kernel with kgdb support. Applied patch for kdb from "ftp://oss.sgi.com/projects/kdb/download/v4.4/kdb-v4.4-2.6.32-x86-2.bz2 and ftp://oss.sgi.com/projects/kdb/download/v4.4/kdb-v4.4-2.6.32-common-2.bz2"
-----Original Message----- From: Dongdong Deng [mailto:[email protected]] Sent: Wednesday, March 28, 2012 5:10 PM To: Rahul Viradiya Cc: [email protected] Subject: Re: [Kgdb-bugreport] KGDB error in kernel 2.6.32 I think this problem have been fixed by http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commit;h=fb82c0ff27b2c40c6f7a3d1a94cafb154591fa80 On Wed, Mar 28, 2012 at 5:24 PM, Rahul Viradiya <[email protected]> wrote: > Hi, > ------------------- > > ------------------------------ > |Test > |machine|-------------------------------------------------------|Devel > |opment Machine| > ------------------- RS232 > serial cable ------------------------------ > > Test machine is connected to Development machine using RS232 cable. > Test machine is booted with kernel command line arguments kgdbwait, > kgdboc=ttyS0,115200 > > Log shows CPI: Invalid PBLK length [7] > Gdb: Waiting for connection from remote gdb > > Here is the log of Development machine: > # gdb vmlinux > GNU gdb (GDB) Red Hat Enterprise Linux (7.2-48.el6) Copyright (C) 2010 > Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later > <http://gnu.org/licenses/gpl.html> > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. Type "show copying" > and "show warranty" for details. > This GDB was configured as "i686-redhat-linux-gnu". > For bug reporting instructions, please see: > <http://www.gnu.org/software/gdb/bugs/>... > Reading symbols from > /home/rahul/usr/src/kernels/test/ZebOS-linux-2.6.32.5/vmlinux...done. > (gdb) set remotebaud 115200 > (gdb) set debug remote 1 > (gdb) target remote /dev/ttyS0 > Remote debugging using /dev/ttyS0 > Sending packet: $qSupported:xmlRegisters=i386;qRelocInsn+#25...Ack > Packet received: > Packet qSupported (supported-packets) is NOT supported Sending packet: > $Hg0#df...Ack Packet received: OK Sending packet: $?#3f...Ack Packet > received: S05 Sending packet: $Hc-1#09...Ack Packet received: OK > Sending packet: $qC#b4...Ack Packet received: QC0000000000000001 > Sending packet: $qAttached#8f...Ack Packet received: > Packet qAttached (query-attached) is NOT supported Sending packet: > $qOffsets#4b...Ack Packet received: > Sending packet: $g#67...Ack > Packet received: > 36000000559cffff00000000bcc69ac07cff44f788ff44f700000000000000000a8d48 > c08202000060000000680000007b0000007b000000ffff0000ffff0000 > kgdb_breakpoint (new_kgdb_io_ops=0xc09ac6bc) at kernel/kgdb.c:1721 > 1721 wmb(); /* Sync point after breakpoint */ Sending packet: > $qSymbol::#5b...Ack Packet received: > Packet qSymbol (symbol-lookup) is NOT supported Sending packet: > $qTStatus#49...Ack Packet received: E22 trace API error 0x2. > (gdb) > > > > Can I get help how to resolve the issue? > > --Thanks > Rahul > ---------------------------------------------------------------------- > -------- > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > _______________________________________________ > Kgdb-bugreport mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Kgdb-bugreport mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport
