From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.175]) by ozlabs.org (Postfix) with ESMTP id 5DEAFDE108 for ; Thu, 19 Jun 2008 07:27:10 +1000 (EST) Received: by wf-out-1314.google.com with SMTP id 24so450187wfg.15 for ; Wed, 18 Jun 2008 14:27:09 -0700 (PDT) Message-ID: <4e69a5150806181427r5acc8905u16c046492df7243c@mail.gmail.com> Date: Wed, 18 Jun 2008 14:27:09 -0700 From: "SEEMA pm" To: linuxppc-dev@ozlabs.org Subject: kgdb issues for ppc target MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_8152_29366162.1213824429049" List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , ------=_Part_8152_29366162.1213824429049 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello, I have an mpc8540 target board with a BSP - linux-2.6.11. I have a host machine where I have ppc-target configured gdb obtained from gdb-6.8.tar.gz. I am able to debug userspace files by running gdbserver in target machine. Now I want to debug kernel files of my target machine. I have CONFIG_DEBUG_KERNEL=y, CONFIG_DEBUG_INFO=y and CONFIG_SERIAL_TEXT_DEBUG=y. I want to debug kernel remotely after it's loaded in the target machine as I do with userspace files. In the host machine when i run: gdb ./uImage, I get not in executable format - error. I have downloaded kernel patches : linux-2.6.13-kgdb-2.3 and applied core-lite.patch,ppc-lite.patch and eth.patch, got lot of hunks and failed messages. After this when I build uImage I am getting lot of build errors. It would be really helpful if I can get the list of exact patches needed so I can make the changes manually as mine is a modified 2.6.11 kernel. Also, I need steps of how to run it in the target machine through ethernet port. Thanks ------=_Part_8152_29366162.1213824429049 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello,
I have an mpc8540 target board with a BSP - linux-2.6.11. I have a host machine where I have ppc-target configured gdb obtained from gdb-6.8.tar.gz. I am able to debug userspace files by running gdbserver in target machine.
Now I want to debug kernel files of my target machine. I have CONFIG_DEBUG_KERNEL=y, CONFIG_DEBUG_INFO=y and CONFIG_SERIAL_TEXT_DEBUG=y.
I want to debug kernel remotely after it's loaded in the target machine as I do with userspace files. In the host machine when i run: gdb ./uImage, I get not in executable format - error.

I have downloaded kernel patches : linux-2.6.13-kgdb-2.3 and applied core-lite.patch,ppc-lite.patch and eth.patch, got lot of hunks and failed messages. After this when I build uImage I am getting lot of build errors.

It would be really helpful if I can get the list of exact patches needed so I can make the changes manually as mine is a modified 2.6.11 kernel. Also, I need steps of how to run it in the target machine through ethernet port.

Thanks



------=_Part_8152_29366162.1213824429049--