2003-02-15 00:42:45

by David Wuertele

[permalink] [raw]
Subject: how to interactively break gdb debugging kernel over serial?

I'm debugging the kernel with gdb over a serial port. Breakpoints and
stepping through code works great, except for the fact that once the
kernel is running, I can't seem to use Control-C to stop it. Is there
a keypress or other interactive way to break a running kernel?

Thanks,
Dave


2003-02-16 07:04:52

by George Anzinger

[permalink] [raw]
Subject: Re: how to interactively break gdb debugging kernel over serial?

David Wuertele wrote:
> I'm debugging the kernel with gdb over a serial port. Breakpoints and
> stepping through code works great, except for the fact that once the
> kernel is running, I can't seem to use Control-C to stop it. Is there
> a keypress or other interactive way to break a running kernel?
>
> Thanks,
> Dave
>
Dave,

There are a great number of kgdb patches in the wild. You would help
us out a lot if you were to name the one you are using. If you are on
then 2.5 kernel I suggest you check out Andrew Morton's area and use
that one.

If you are using the one from source forge on a 2.4 kernel, there is a
mailing list for it that can be found at the same sourceforge site.


--
George Anzinger [email protected]
High-res-timers: http://sourceforge.net/projects/high-res-timers/
Preemption patch: http://www.kernel.org/pub/linux/kernel/people/rml

2003-02-18 20:32:53

by David Wuertele

[permalink] [raw]
Subject: Re: how to interactively break gdb debugging kernel over serial?

>> I'm debugging the kernel with gdb over a serial port. Breakpoints and
>> stepping through code works great, except for the fact that once the
>> kernel is running, I can't seem to use Control-C to stop it. Is there
>> a keypress or other interactive way to break a running kernel?
>> Thanks,
>> Dave

george> There are a great number of kgdb patches in the wild. You
george> would help us out a lot if you were to name the one you are
george> using.

Here's the output from gdb --version:

GNU gdb Red Hat Linux (5.1.90CVS-5)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux".

Does that help?

Thanks,
Dave

2003-02-18 22:39:39

by George Anzinger

[permalink] [raw]
Subject: Re: how to interactively break gdb debugging kernel over serial?

David Wuertele wrote:
>>>I'm debugging the kernel with gdb over a serial port. Breakpoints and
>>>stepping through code works great, except for the fact that once the
>>>kernel is running, I can't seem to use Control-C to stop it. Is there
>>>a keypress or other interactive way to break a running kernel?
>>>Thanks,
>>>Dave
>
>
> george> There are a great number of kgdb patches in the wild. You
> george> would help us out a lot if you were to name the one you are
> george> using.
>
> Here's the output from gdb --version:
>
> GNU gdb Red Hat Linux (5.1.90CVS-5)
> Copyright 2002 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB. Type "show warranty" for details.
> This GDB was configured as "i386-redhat-linux".
>
> Does that help?

NO :( It is the KGDB patch that you are using that is of interest
here, not the gdb program.

--
George Anzinger [email protected]
High-res-timers: http://sourceforge.net/projects/high-res-timers/
Preemption patch: http://www.kernel.org/pub/linux/kernel/people/rml