Re: [Kgdb-bugreport] 2.6.16 patches?

2006-04-21 Thread Tom Rini
On Fri, Apr 21, 2006 at 08:30:19PM +0530, Milind Dumbare wrote: > Following are the versions of gcc and gdb. > > gcc version 4.1.0 20060304 (Red Hat 4.1.0-3) > and > gdb 6.4 (gdbmod-2.4) OK. Any chance you can use cross-tool to setup a gcc-4.0.2? I've got a gcc-3.4.3 handy, along with 4

Re: [Kgdb-bugreport] 2.6.16 patches?

2006-04-21 Thread Milind Dumbare
Following are the versions of gcc and gdb. gcc version 4.1.0 20060304 (Red Hat 4.1.0-3) and gdb 6.4 (gdbmod-2.4) ...Milind On Fri, 2006-04-21 at 07:35 -0700, Tom Rini wrote: > On Fri, Apr 21, 2006 at 04:43:33PM +0530, Milind Dumbare wrote: > > Hi Tom, > > > > Please find the attached kg

Re: [Kgdb-bugreport] {PATCH} Kernel hangs on arm when detached from gdb

2006-04-21 Thread Girish Shilamkar
In i386 whenever the breakpoint instruction is hit the ip is increased to the next instruction address. And then it is decremented since we want to restore and continue from the instruction in whose place breakpoint instruction was placed. And then processor resumes from this instruction address.

RE: [Kgdb-bugreport] {PATCH} Kernel hangs on arm when detached from gdb

2006-04-21 Thread Wessel, Jason
This is ARM/XScale specific with respect to exception handling. You will just keep executing the breakpoint instruction upon detach, until the next time you attach with the debugger. Advancing the PC gets you beyond the breakpoint upon the return from the exception context. Either that or you hav

Re: [Kgdb-bugreport] 2.6.16 patches?

2006-04-21 Thread Tom Rini
On Fri, Apr 21, 2006 at 04:43:33PM +0530, Milind Dumbare wrote: > Hi Tom, > > Please find the attached kgdb cvs patches rebased to linux-2.6.11. I am > sending patches in two parts. This mail has part-1. find part-2 in next > mail. > > I had following problems while testing kgdb patches on i386.

Re: [Kgdb-bugreport] {PATCH} Kernel hangs on arm when detached from gdb

2006-04-21 Thread Tom Rini
On Fri, Apr 21, 2006 at 05:47:32PM +0530, Girish Shilamkar wrote: > If gdb is detached from the kernel on arm then it hangs. Though it can > attach again and can continue. > The problem occurred as in arm, pc is at same location where the > breakpoint occurred. And this breakpoint happens to be co

RE: [Kgdb-bugreport] {PATCH} Kernel hangs on arm when detached from gdb

2006-04-21 Thread Wessel, Jason
Wow... I could have sworn I submitted the same patch long time ago. But I had the case statement in a different order. diff -u linux-2.6.10/arch/arm/kernel/kgdb.c linux-2.6.10/arch/arm/kernel/kgdb.c Index: linux-2.6.14/arch/arm/kernel/kgdb.c ===

[Kgdb-bugreport] {PATCH} Kernel hangs on arm when detached from gdb

2006-04-21 Thread Girish Shilamkar
If gdb is detached from the kernel on arm then it hangs. Though it can attach again and can continue. The problem occurred as in arm, pc is at same location where the breakpoint occurred. And this breakpoint happens to be compiled breakpoint (^C) one needs to increment the pc to next instruction. T

Re: [Kgdb-bugreport] 2.6.16 patches?

2006-04-21 Thread Milind Dumbare
Sorry, by mistake I wrote, "kgdb cvs patches re-based to linux-2.6.11", actually its "kgdb cvs patches re-based to linux-2.6.16" ...Milind On Fri, 2006-04-21 at 16:43 +0530, Milind Dumbare wrote: > Hi Tom, > > Please find the attached kgdb cvs patches rebased to linux-2.6.11. I am > sending patc